List Session Threads

Lightweight Session navigation, oldest first, with stable per-origin positions and parent references.

GET/api/v1/sessions/{session_id}/threads

Lightweight Session navigation, oldest first, with stable per-origin positions and parent references.

Authorization

AuthorizationBearer <token>

A workspace API key (a13n_...)

In: header

Path Parameters

session_id*Session Id

Query Parameters

origin?array<>|null
thread_id?array<string>|null
limit?Limit
Range1 <= value <= 100
Default50
cursor?string|null

Header Parameters

X-Workspace-ID?|

The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/sessions/string/threads"
{  "items": [    {      "created_at": "2019-08-24T14:15:22Z",      "id": "string",      "origin": "new",      "origin_count": 0,      "origin_number": 0,      "origin_thread": {        "id": "string",        "origin": "new",        "origin_count": 0,        "origin_number": 0,        "subagent": "string"      },      "session_id": "string",      "subagent": "string"    }  ],  "next_cursor": "string"}