Skip to content

Events

POST /v1/accounts/{a}/consumers/{consumer}/ack

Record how far a named consumer has read the event stream. It never marks messages read.

Scope: read

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
consumer (required)pathstringName that identifies the event consumer.

Request body: EventAckRequest

GET /v1/accounts/{a}/event-log

Read events after a cursor as a JSON page. With Accept: text/event-stream it streams them instead.

Scope: read

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
afterquerystring, nullableReturn events after this cursor, a decimal string. Defaults to 0, which returns event_cursor_expired once older events have been dropped; use newest to start at the end.
limitqueryinteger, nullableEvents per JSON page. Defaults to 100. The stream ignores it.
newestquerybooleanTrue to start at the end of the log instead of a cursor: a JSON page holds the most recent events, oldest first, and its nextCursor is the newest event’s cursor; the stream sends only events added after it connects, unless a Last-Event-ID header resumes it. Cannot be combined with after.

GET /v1/accounts/{a}/events

Read events after a cursor as a JSON page. With Accept: text/event-stream it streams them instead.

Scope: read

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
afterquerystring, nullableReturn events after this cursor, a decimal string. Defaults to 0, which returns event_cursor_expired once older events have been dropped; use newest to start at the end.
limitqueryinteger, nullableEvents per JSON page. Defaults to 100. The stream ignores it.
newestquerybooleanTrue to start at the end of the log instead of a cursor: a JSON page holds the most recent events, oldest first, and its nextCursor is the newest event’s cursor; the stream sends only events added after it connects, unless a Last-Event-ID header resumes it. Cannot be combined with after.

GET /v1/accounts/{a}/events/stream

Stream events as server-sent events, resuming after a cursor or Last-Event-ID.

Scope: read

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
afterquerystring, nullableReturn events after this cursor, a decimal string. Defaults to 0, which returns event_cursor_expired once older events have been dropped; use newest to start at the end.
limitqueryinteger, nullableEvents per JSON page. Defaults to 100. The stream ignores it.
newestquerybooleanTrue to start at the end of the log instead of a cursor: a JSON page holds the most recent events, oldest first, and its nextCursor is the newest event’s cursor; the stream sends only events added after it connects, unless a Last-Event-ID header resumes it. Cannot be combined with after.

Types

EventAckRequest

Request to record how far a consumer has read the events.

FieldTypeDescription
cursor (required)stringThe cursor of the last event the consumer has handled, a decimal string.