Event envelope
Every CRM event has the same envelope; only data changes with the type of the event.
On this page
The type has the form com.rdcopilot.crm.<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": "5e2b9c47-8d13-4a6f-b0e5-71c4a2d93f68",
"type": "com.rdcopilot.crm.deal.won.v1",
"source": "/crm/v1",
"time": "2026-11-23T09:41:07Z",
"customerOrgId": "a3f1d7c2-64be-4b09-9d58-2c0e7f1a8b34",
"legalCompanyId": "c8b25e90-1d47-4f3a-a6d2-93e0b51f7c68",
"aggregateType": "deal",
"aggregateId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
"aggregateRevision": 6,
"correlationId": "f06a3b8d-9e21-47c5-8b14-d5a7e2c10963",
"causationId": "9a4e7b10-2c6d-4f38-b5a1-0d3e8c7f6b25",
"actor": {
"serviceId": "crm-api"
},
"data": {
"number": "DL-1038",
"stage": "won",
"reason": "delivery"
}
} 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