Event envelope
Every eLearning event has the same envelope; only data changes with the type of the event.
On this page
The type has the form com.rdcopilot.elearning.<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": "9d84cb4b-4032-4fd2-aa74-a9489ba68145",
"type": "com.rdcopilot.elearning.certificate.issued.v1",
"source": "/elearning/v1",
"time": "2025-11-20T09:00:00Z",
"customerOrgId": "brumar",
"legalCompanyId": "brumar-distributie",
"aggregateType": "assignment",
"aggregateId": "ASG-2025-0214",
"aggregateRevision": 5,
"correlationId": "4e08713a-ec34-4a5a-92d3-81fd425640ad",
"causationId": "4e08713a-ec34-4a5a-92d3-81fd425640ad",
"actor": {
"type": "user",
"id": "radu-ionescu"
},
"data": {
"id": "CRT-2025-0171",
"issuedOn": "2025-11-20",
"validUntil": "2026-11-20",
"assignmentId": "ASG-2025-0214"
}
} 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