List or stream ordered thread events
GET
/v1/threads/{threadId}/eventsFor JSON, no cursor returns the newest page in chronological order, after pages forward, and before (or legacy alias cursor) pages backward. For SSE, an explicit after or Last-Event-ID resumes after that sequence; without either the stream starts at the current head and emits only future events. SSE event IDs equal the committed thread sequence.
How to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| threadId | path | string | Yes | Thread ID |
Query parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| after | query | integer | No | Return events with a sequence strictly greater than this cursor. |
| before | query | integer | No | Return the newest events with a sequence strictly less than this cursor. |
| cursor | query | integer | No | Backward-compatible alias for `before`. |
| limit | query | integer | No | — |
| stream | query | boolean | No | — |
Body schema
This endpoint does not require a request body.
None.
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Ordered event page or replayable event streamapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| object | string | No | — |
| threadId | string | No | Thread ID. |
| data | object[] | No | — |
| nextCursor | integer | No | — |
| streamCursor | integer | No | Highest sequence returned; use as `after` or SSE resume cursor. |
| olderCursor | integer | No | Lowest sequence returned; use as `before` to load an older page. |
| latestSequence | integer | No | — |
| hasOlder | boolean | No | — |
| hasNewer | boolean | No | — |
| hasMore | boolean | No | Alias for hasOlder on latest/older pages and hasNewer on forward pages. |
| direction | latest | forward | older | No | — |
List or stream ordered thread events
Loading...
Response 200
Loading...