Saltar al contenido principal

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: Bearer header
  • Scopes: at least one of messages:read
  • operationId: listMessageEvents

Parameters​

NameInTypeRequiredDescription
trackIdpathTrackIdYesServer-generated ULID that identifies a message.
rcptqueryRecipientIdNoOnly the events of this recipient.
cursorqueryCursorNoOpaque pagination token. Do not parse or build it.
limitqueryintegerNoMaximum number of items per page, from 1 to 200 (default 50).
If-None-MatchheaderstringNoETag of a previous response; a match answers 304 without a body.

Responses​

CodeDescriptionSchema
200A page of events.EventPage
304Not modified since the ETag sent in If-None-Match.—
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
404The resource does not exist or belongs to another tenant.Problem
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503A 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: Bearer header
  • Scopes: at least one of messages:read
  • operationId: pollEvents

Parameters​

NameInTypeRequiredDescription
afterqueryCursorNoCursor returned by the previous call; omit to start from the oldest retained event.
limitqueryintegerNoMaximum number of items per page, from 1 to 200 (default 50).

Responses​

CodeDescriptionSchema
200Events after the cursor. An empty page keeps the same cursor.EventPage
400The 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
401Missing or invalid API key.Problem
403The API key is not allowed to perform this operation.Problem
429Rate limit or quota exceeded.Problem
500Unexpected failure (internal_error). The request may be retried; keep the requestId when contacting support.Problem
503A dependency (storage, ledger, vault, renderer or mail service) is temporarily unavailable. Retry after the number of seconds in Retry-After when present.Problem