---
title: "List a run's threads"
description: Returns every conversation in the run, oldest first.
api_method: GET
api_path: "/v1/agent-runs/{runId}/threads"
canonical_url: https://wiblo.app/docs/developers/api/agent-threads/list-agent-threads
last_updated: 2026-07-28T17:31:44+02:00
md_url: https://wiblo.app/docs/developers/api/agent-threads/list-agent-threads.md
---

# List a run's threads

`GET /v1/agent-runs/{runId}/threads`

Returns every conversation in the run, oldest first. Cross-tenant probes and unknown ids collapse onto the same 404 `AGENT_RUN_NOT_FOUND` envelope. Per-user rate-limited at 120/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `runId` | `string` | Yes |  |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/agent-runs/{runId}/threads \
  -H "Authorization: Bearer $WIBLO_TOKEN"
```

**TypeScript**

```ts
import { createSdk, listAgentThreads } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await listAgentThreads({
  client: sdk,
  path: { runId: "..." },
})
```

## Responses

**`200`** — The run's threads. Returns `ThreadListResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `threads` | `array<AgentThread>` | Yes |  |

**`401`** — No valid session cookie or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`404`** — No run visible to the caller with this id (`AGENT_RUN_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.

### The AgentThread object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes |  |
| `runId` | `string` | Yes |  |
| `workspaceId` | `string` | Yes |  |
| `provider` | `"claude-code" \| "codex"` | Yes |  |
| `model` | `string \| null` | Yes |  |
| `mode` | `"ask" \| "edit"` | Yes |  |
| `title` | `string \| null` | Yes |  |
| `status` | `"active" \| "idle" \| "aborted" \| "error"` | Yes |  |
| `providerSessionId` | `string \| null` | Yes |  |
| `createdAt` | `string` | Yes |  |
| `updatedAt` | `string` | Yes |  |
