List threads in a managed-agent Session.
GET /api/v1/cloud/sessions/{session_id}/threads
Retrieves threads in a Session. The coordinator thread is listed before child threads.
Path parameters
| Parameter | Type | Description |
|---|---|---|
session_id | string | Session ID with the sess_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Maximum number of threads 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 |
Example request
Example response
HTTP 200 OK
Response fields
| Field | Type | Description |
|---|---|---|
data | array of Session Thread | Thread objects |
has_more | boolean | Whether more results are available beyond this page |
first_id | string | null | ID of the first thread in the current page |
last_id | string | null | ID of the last thread in the current page |
next_page | string | null | Opaque cursor for the next page |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Invalid pagination parameter |
| 401 | authentication_error | PAT invalid or expired |
| 404 | not_found_error | Session does not exist |