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
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
consumer (required) | path | string | Name 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
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
after | query | string, nullable | Return 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. |
limit | query | integer, nullable | Events per JSON page. Defaults to 100. The stream ignores it. |
newest | query | boolean | True 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
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
after | query | string, nullable | Return 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. |
limit | query | integer, nullable | Events per JSON page. Defaults to 100. The stream ignores it. |
newest | query | boolean | True 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
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
after | query | string, nullable | Return 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. |
limit | query | integer, nullable | Events per JSON page. Defaults to 100. The stream ignores it. |
newest | query | boolean | True 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.
| Field | Type | Description |
|---|---|---|
cursor (required) | string | The cursor of the last event the consumer has handled, a decimal string. |