Event envelope
Every Private AI Workspace event has the same envelope; only data changes with the type of the event.
On this page
The type has the form com.rdcopilot.private-ai.<event>.v1. The last part is the version of data.
Fields
| Field | Meaning |
|---|---|
specversion | Version of the envelope format. |
id | Identifier of this event. A repeated delivery of the same event has the same id. |
type | What happened, in the form above. |
source | The product that sent the event. |
time | When the event happened, as a date and time with a time zone. |
customerOrgId | Your organisation. |
legalCompanyId | The legal company that the event belongs to, test or live. |
aggregateType | The kind of record that changed. |
aggregateId | The record that changed. |
aggregateRevision | The revision of the record after the change. |
correlationId | Ties together everything that came from one request or one flow. |
causationId | The document or operation that caused this event. |
actor | Who or what made the change. |
data | The content of the event. Its shape depends on type. |
Example
{
"specversion": "1.0",
"id": "8a000004-0000-4000-8000-000000000001",
"type": "com.rdcopilot.private-ai.chat.answered.v1",
"source": "/private-ai/v1",
"time": "2026-11-23T07:12:00Z",
"customerOrgId": "8a000005-0000-4000-8000-000000000001",
"legalCompanyId": "8a000006-0000-4000-8000-000000000001",
"aggregateType": "chat",
"aggregateId": "8a000002-0000-4000-8000-000000000001",
"aggregateRevision": 1,
"correlationId": "8a000001-0000-4000-8000-000000000001",
"causationId": "8a000001-0000-4000-8000-000000000001",
"actor": {
"type": "client",
"id": "workspace-integration"
},
"data": {
"workspaceId": "workspace-main",
"status": "answered",
"documentIds": [
"doc-procedure"
]
}
} Deliveries can repeat. Use id to skip an event you already handled. Delivery and retries says when an event is sent again.
The full rule: Developer guide