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

# Event envelope

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

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

JSON

```json
{
  "specversion": "1.0",
  "id": "41800000-0000-4000-8000-000000000003",
  "type": "com.rdcopilot.reports.run.completed.v1",
  "source": "/reports/v1",
  "time": "2026-11-22T06:00:00Z",
  "customerOrgId": "brumar",
  "legalCompanyId": "brumar",
  "aggregateType": "run",
  "aggregateId": "41800000-0000-4000-8000-000000000002",
  "aggregateRevision": 1,
  "correlationId": "41800000-0000-4000-8000-000000000001",
  "causationId": "41800000-0000-4000-8000-000000000001",
  "actor": {
    "type": "client",
    "id": "reporting-client"
  },
  "data": {
    "runId": "41800000-0000-4000-8000-000000000002",
    "questionId": "revenue-by-product",
    "sourceRevision": 1
  }
}
```

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

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