Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Event envelope

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

    On this page

    The type has the form com.rdcopilot.iot.<event>.v1. The last part is the version of data.

    Fields

    FieldMeaning
    specversionVersion of the envelope format.
    idIdentifier of this event. A repeated delivery of the same event has the same id.
    typeWhat happened, in the form above.
    sourceThe product that sent the event.
    timeWhen the event happened, as a date and time with a time zone.
    customerOrgIdYour organisation.
    legalCompanyIdThe legal company that the event belongs to, test or live.
    aggregateTypeThe kind of record that changed.
    aggregateIdThe record that changed.
    aggregateRevisionThe revision of the record after the change.
    correlationIdTies together everything that came from one request or one flow.
    causationIdThe document or operation that caused this event.
    actorWho or what made the change.
    dataThe content of the event. Its shape depends on type.

    Event payload

    JSON

    {
      "specversion": "1.0",
      "id": "a1000000-0000-4000-8000-000000000002",
      "type": "com.rdcopilot.iot.alert.opened.v1",
      "source": "/iot/v1",
      "time": "2026-11-20T09:03:10Z",
      "customerOrgId": "org-brumar",
      "legalCompanyId": "brumar",
      "aggregateType": "alert",
      "aggregateId": "alert-1",
      "aggregateRevision": 1,
      "correlationId": "a1000000-0000-4000-8000-000000000001",
      "causationId": "reading-149",
      "actor": {
        "type": "device",
        "id": "device-12"
      },
      "data": {
        "id": "alert-1",
        "ruleId": "rule-1",
        "severity": "critical",
        "assetId": "cold-room-2",
        "opened": "2026-11-20T09:03:10Z",
        "state": "open",
        "assignee": null,
        "workOrderId": null,
        "revision": 1
      }
    }

    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