Aex Brain
HTTP APIAPI

Read or stream events

Returns a page of retained events as JSON, or streams history and live updates when called with Accept: text/event-stream. Pass after (or Last-Event-ID) with the last retained event's cursor to resume from a known position. Returns 409 cursor_unavailable if the cursor points to an unsynced tail lost during restore.

GET/sessions/{id}/events
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Opaque session ID.

Match^[a-fA-F0-9]{32}$

Query Parameters

after?string

Opaque cursor from the last retained event.

limit?integer

Maximum number of items to return (JSON mode).

Range1 <= value <= 1000
Default100

Header Parameters

Last-Event-ID?string

SSE reconnect cursor (used when the after query parameter is omitted).

Response Body

application/json

curl -X GET "https://example.com/sessions/string/events" \  -H "Authorization: Bearer YOUR_TOKEN"
{  "events": [    {      "cursor": "string",      "data": null,      "id": "string",      "input_id": "string",      "time": "2019-08-24T14:15:22Z",      "type": "string"    }  ],  "next_cursor": "string"}