Skip to main content
Sessions

List Session threads

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

ParameterTypeDescription
session_idstringSession ID with the sess_ prefix

Headers

HeaderRequiredDescription
AuthorizationYesBearer $QODER_PAT

Query parameters

ParameterTypeRequiredDescription
limitintegerNoMaximum number of threads to return. Default 20, range 1-100. Values above 100 return 400 invalid_request_error.
pagestringNoOpaque cursor from a previous response's next_page

Example request

curl -X GET "https://api.qoder.com/api/v1/cloud/sessions/sess_019f00000000000000000000000000aa/threads?limit=10" \
  -H "Authorization: Bearer $QODER_PAT"

Example response

HTTP 200 OK
{
  "data": [
    {
      "id": "sthr_019f00000000000000000000000001aa",
      "type": "session_thread",
      "session_id": "sess_019f00000000000000000000000000aa",
      "parent_thread_id": null,
      "agent": {"id": "agent_019f000000000000000000000000001a", "type": "agent", "version": 1},
      "status": "idle",
      "stats": null,
      "archived_at": null,
      "created_at": "2026-06-15T08:00:00.000Z",
      "updated_at": "2026-06-15T08:05:00.000Z"
    }
  ],
  "first_id": "sthr_019f00000000000000000000000001aa",
  "has_more": false,
  "last_id": "sthr_019f00000000000000000000000001aa",
  "next_page": null
}

Response fields

FieldTypeDescription
dataarray of Session ThreadThread objects
has_morebooleanWhether more results are available beyond this page
first_idstring | nullID of the first thread in the current page
last_idstring | nullID of the last thread in the current page
next_pagestring | nullOpaque cursor for the next page

Errors

HTTPTypeTrigger
400invalid_request_errorInvalid pagination parameter
401authentication_errorPAT invalid or expired
404not_found_errorSession does not exist
HTTP 404 Not Found
{
  "type": "error",
  "request_id": "cb80235f-76a2-4ff3-9e28-5aa2da12dc14",
  "error": {
    "type": "not_found_error",
    "message": "Session 'sess_doesnotexist_xxxxxxxxxxxxxxxxxxxxxxxx' was not found."
  }
}
See Errors for full error envelope reference.
List Session threads - Qoder