GET /api/v1/cloud/sessions/{session_id}/threads/{thread_id}/events
Retrieves public events for one thread with cursor pagination.
If the Session was created with incremental_streaming_enabled: true, the response may include persisted incremental agent events scoped to the requested thread. If the flag is false or omitted, incremental events are hidden.
Path parameters
| Parameter | Type | Description |
|---|---|---|
session_id | string | Session ID with the sess_ prefix |
thread_id | string | Thread ID with the sthr_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Maximum number of events to return. Default 20, range 1-100. Values above 100 return 400 invalid_request_error. |
page | string | No | Opaque cursor from a previous response’s next_page. Mutually exclusive with before_id and after_id |
before_id | string | No | Return events ordered before this event ID. Mutually exclusive with page and after_id |
after_id | string | No | Return events ordered after this event ID. Mutually exclusive with page and before_id |
Example request
Example response
Response fields
| Field | Type | Description |
|---|---|---|
data | array of Event object | Thread-scoped events |
has_more | boolean | Whether more results are available beyond this page |
first_id | string | null | ID of the first event in the current page |
last_id | string | null | ID of the last event in the current page |
next_page | string | null | Opaque cursor for the next page |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Invalid limit (non-integer or non-positive), or simultaneously providing page with before_id/after_id |
| 401 | authentication_error | PAT invalid or expired |
| 404 | not_found_error | Session or thread does not exist |
Related
Managed Agents
Understand thread event semantics in multi-agent collaboration.
Stream Thread Events (SSE)
Receive thread events in real time via Server-Sent Events.
List Session Threads
View all threads in a session.