Event envelope
Every REGES Gateway event has the same envelope; only data changes with the type of the event.
On this page
The type has the form com.rdcopilot.reges.<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": "41643ca9-16e3-4f19-9f65-88c47813845b",
"type": "com.rdcopilot.reges.operation.registered.v1",
"source": "/reges/v1",
"time": "2026-11-02T10:12:00Z",
"customerOrgId": "82190ff1-d914-4589-b40e-7d44b41db27d",
"legalCompanyId": "6e2aa977-c041-49c3-8c57-b9f2cd6cf3f0",
"aggregateType": "register_operation",
"aggregateId": "1453a253-8c3c-41cc-99e0-23855a04de29",
"aggregateRevision": 6,
"correlationId": "0987c14a-31a6-43e1-b7e0-ea42b21e8ef1",
"causationId": "0dbdf238-130c-4fcb-9551-5102bdf4e261",
"actor": {
"serviceId": "reges-gateway"
},
"data": {
"number": "RG-2026-001479",
"kind": "change-salary",
"status": "registered",
"reference": "R2026-0479033"
}
} 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