---
title: "Event envelope | Docs | Integrations by R&D Copilot"
description: "Every Integrations event has the same envelope; only data changes with the type of the event."
canonical: "https://integrations.rdcopilot.com/docs/events/event-envelope/"
language: en
updated: 2026-11-22
---

# Event envelope

Every Integrations event has the same envelope; only `data` changes with the type of the event.

The `type` has the form `com.rdcopilot.integrations.<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`. |

## Event payload

JSON

```json
{
  "specversion": "1.0",
  "id": "621d8426-2567-4e3c-b237-39c58f04d170",
  "type": "com.rdcopilot.integrations.run.completed.v1",
  "source": "/integrations/v1",
  "time": "2026-11-23T09:00:00Z",
  "customerOrgId": "org-brumar",
  "legalCompanyId": "company-brumar",
  "aggregateType": "run",
  "aggregateId": "run-b73a02",
  "aggregateRevision": 2,
  "correlationId": "api-b73a02d9",
  "causationId": "33a22ec0-f0af-4498-a388-123456789abc",
  "actor": {
    "type": "client",
    "id": "client-integrations"
  },
  "data": {
    "runId": "run-b73a02",
    "status": "completed"
  }
}
```

Deliveries can repeat. Use `id` to skip an event you already handled. [Delivery and retries](https://integrations.rdcopilot.com/docs/events/delivery-and-retries/) says when an event is sent again.

The full rule: [Developer guide](https://rdcopilot.com/docs/events/)
