Events
State changes, per message or as a polling feed.
GET /v1/messages/{trackId}/events
List the events of a message
Oldest first.
- Authentication: API key in the
Authorization: Bearerheader - Scopes: at least one of
messages:read - operationId:
listMessageEvents
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
trackId | path | TrackId | Yes | Server-generated ULID that identifies a message. |
rcpt | query | RecipientId | No | Only the events of this recipient. |
cursor | query | Cursor | No | Opaque pagination token. Do not parse or build it. |
limit | query | integer | No | Maximum number of items per page, from 1 to 200 (default 50). |
If-None-Match | header | string | No | ETag of a previous response; a match answers 304 without a body. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | A page of events. | EventPage |
304 | Not modified since the ETag sent in If-None-Match. | — |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
404 | The resource does not exist or belongs to another tenant. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
503 | A dependency (storage, ledger, vault, renderer or mail service) is temporarily unavailable. Retry after the number of seconds in Retry-After when present. | Problem |
GET /v1/events
Poll the events of the tenant
Reconciliation feed: every event the tenant would receive by webhook, in a
stable order. Store the last nextCursor and pass it as after. No state
change depends on webhooks alone.
- Authentication: API key in the
Authorization: Bearerheader - Scopes: at least one of
messages:read - operationId:
pollEvents
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
after | query | Cursor | No | Cursor returned by the previous call; omit to start from the oldest retained event. |
limit | query | integer | No | Maximum number of items per page, from 1 to 200 (default 50). |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Events after the cursor. An empty page keeps the same cursor. | EventPage |
400 | The request is malformed. The body is not valid JSON or not a JSON object, a field is invalid (errors lists each one), a header or query parameter is invalid, or the Content-Type is not application/json where a JSON body is expected (unsupported_media on the control plane). | Problem |
401 | Missing or invalid API key. | Problem |
403 | The API key is not allowed to perform this operation. | Problem |
429 | Rate limit or quota exceeded. | Problem |
500 | Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support. | Problem |
503 | A dependency (storage, ledger, vault, renderer or mail service) is temporarily unavailable. Retry after the number of seconds in Retry-After when present. | Problem |