Payloads & Event Data
The envelope
Every delivery is a JSON body in the CloudEvents v1.0.2 format:
{
"specversion": "1.0",
"type": "example.resource.updated",
"source": "https://api.daysmartrecreation.com",
"id": "018f2f3a-9c2e-7c31-8b3e-2b6a9b6b5a10",
"time": "2026-08-26T14:32:07Z",
"datacontenttype": "application/cloudevents+json",
"subject": "example-resources/123",
"tenantcode": "acme",
"data": {
"resourceId": "resource-123",
"changes": ["metadata"]
}
}(This shows the envelope shape, not a real event type — see the event-catalog reference below for the actual events you can subscribe to.)
| Field | Meaning |
|---|---|
specversion | Always "1.0" — the CloudEvents spec version. |
type | The event type you subscribed to (e.g. a dot-namespaced, dot-separated name). |
source | Identifies the Dash environment that emitted the event. |
id | A unique identifier for this event occurrence — matches the WebHook-ID header on the same delivery (see Verifying Deliveries and Delivery, Retries & Rate Limits). |
time | UTC timestamp (ISO 8601) of when the event occurred. |
datacontenttype | Always "application/cloudevents+json". |
subject | (where available) {JSON:API resource type}/{id} — e.g. bookings/123 — a direct, ready-to-use lookup key for the JSON:API fetch described below. |
tenantcode | (where available) A CloudEvents extension attribute identifying which company the event belongs to. Present on every event raised in the context of a specific company; omitted on the rare event with no company context. |
data | The event-specific payload — see below. |
If one endpoint receives events from more than one company
A single subscription's endpoint URL might be the same integration serving several Dash companies — for example, one integration receiving events for every company a multi-company customer operates. Use the tenantcode extension attribute to tell those deliveries apart without an extra lookup: route, filter, or tag incoming events by tenantcode directly from the envelope, before you do anything else with them. Don't assume the field is always present — treat its absence as "no specific company context for this event" rather than an error.
data is thin — fetch current state, don't trust it as the full picture
data is thin — fetch current state, don't trust it as the full pictureThe data object is intentionally small: stable identifiers for the affected resource, a short changes-style discriminator so you can route or filter, and a few cheap, non-authoritative summary fields. It is not a full snapshot of the resource.
On receiving any event:
- Use
subject— formatted as{JSON:API resource type}/{id}(e.g.bookings/123) where available — to build the corresponding Dash JSON:API request and fetch the resource's current state. Wheresubjectisn't populated, fall back to the identifier(s) indata. - Treat a 404 from that fetch as a tombstone — the resource has been deleted or cancelled. Delete/cancel-type events are the one exception: they're self-contained (they carry everything you need), since there's nothing left to fetch afterward.
- Key any child records you store locally by the parent resource's id, so a later tombstone can cascade cleanly through your own data.
Why this pattern, instead of the payload carrying full or incremental detail:
- Delivery is at-least-once and effectively unordered. A "go check current state" event makes duplicate deliveries harmless (you just re-fetch the same current state) and makes ordering a non-issue (the latest fetch always wins).
- A missed update-style event self-heals — the next event for that resource triggers another fetch, so you're never more than one event behind. A missed terminal event (a delete or cancellation) does not self-heal on its own, since there's no next event — if you suspect you've missed one, re-fetch the resource directly to check.
- Payload size stays bounded no matter how large the underlying resource or how many related records changed.
Finding out what events exist
The full, current list of subscribable events and the exact shape of each one's data payload is published as an OpenAPI reference, generated directly from Dash's event registry so it can't drift out of sync with this guide: Reference. While this makes using automated tooling easier, it isn't the easiest to read as a human so you can find generated documentation in the Webhook Events section of the API Reference (example).
Updated 2 months ago

