Skip to main content
Sessions

Get a Session Thread

Get one Thread in a Forward Session.

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

Request headers

HeaderRequiredDescription
AuthorizationYesBearer <PAT or SAT>

Path parameters

ParameterTypeRequiredDescription
session_idstringYesSession ID with the sess_ prefix.
thread_idstringYesThread ID with the sthr_ prefix that belongs to the Session.

Example request

curl -s -X GET 'https://api.qoder.com/api/v1/forward/sessions/sess_xxx/threads/sthr_child_xxx' \
  -H "Authorization: Bearer $QODER_ACCESS_TOKEN"

Example response

HTTP 200 OK
{
  "id": "sthr_child_xxx",
  "type": "session_thread",
  "session_id": "sess_xxx",
  "parent_thread_id": "sthr_coordinator_xxx",
  "template_id": "tmpl_worker",
  "name": "research",
  "role": "child",
  "status": "idle",
  "stop_reason": { "type": "end_turn" },
  "created_by_tool_use_id": "toolu_xxx",
  "created_at": "2026-06-22T11:00:00Z",
  "updated_at": "2026-06-22T11:05:00Z"
}
The response is a Thread object.

Errors

HTTPTypeCodeCondition
401authentication_errorauthentication_requiredThe PAT or SAT is invalid or expired.
404not_foundsession_not_foundThe Session does not exist or is not visible to the caller.
404not_found_errorthread_not_foundThe Thread does not exist or does not belong to the Session.
502api_errorruntime_unavailableThe Thread runtime service is temporarily unavailable.

Notes

  • This endpoint can retrieve archived Threads and is the authoritative source for final Thread state.
  • Thread lifecycle Events are for notification and recovery. Do not use them as the only source of an archive result.