---
title: Fetch a thread snapshot
description: "Returns one conversation's snapshot."
api_method: GET
api_path: "/v1/agent-runs/{runId}/threads/{threadId}"
canonical_url: https://wiblo.app/docs/developers/api/agent-threads/get-agent-thread
last_updated: 2026-07-28T17:31:44+02:00
md_url: https://wiblo.app/docs/developers/api/agent-threads/get-agent-thread.md
---

# Fetch a thread snapshot

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

Returns one conversation's snapshot. Cross-tenant probes and unknown ids collapse onto the same 404 `AGENT_THREAD_NOT_FOUND` envelope. Per-user rate-limited at 120/60s.

## Path parameters

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

## Request

**curl**

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

**TypeScript**

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

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

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

## Responses

**`200`** — The thread snapshot. Returns `ThreadResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `thread` | `AgentThread` | Yes |  |

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

**`404`** — No thread visible to the caller with this id in this run (`AGENT_THREAD_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 |  |
