> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

| 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

```bash theme={null}
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**

```json theme={null}
{
  "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

| Field       | Type                                                                                | Description                                         |
| ----------- | ----------------------------------------------------------------------------------- | --------------------------------------------------- |
| `data`      | array of [Session Thread](/cloud-agents/api/sessions/schemas#session-thread-object) | 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       |

**HTTP 404 Not Found**

```json theme={null}
{
  "type": "error",
  "request_id": "cb80235f-76a2-4ff3-9e28-5aa2da12dc14",
  "error": {
    "type": "not_found_error",
    "message": "Session 'sess_doesnotexist_xxxxxxxxxxxxxxxxxxxxxxxx' was not found."
  }
}
```

See [Errors](/cloud-agents/api/conventions/errors) for full error envelope reference.

## Related

<CardGroup cols={2}>
  <Card title="Managed Agents" icon="user-gear" href="/cloud-agents/managed-agents">
    Learn the coordinator and child thread collaboration model.
  </Card>

  <Card title="Archive a thread" icon="archive" href="/cloud-agents/api/sessions/archive-thread">
    Terminate a specific child thread.
  </Card>

  <Card title="Session Thread object" icon="layer-group" href="/cloud-agents/api/sessions/schemas#session-thread-object">
    Full field reference for the Session Thread object.
  </Card>
</CardGroup>
