---
title: "Fetch a thread's message projection"
description: "Returns the user + assistant message transcript for the thread, rebuilt from the message.* events."
api_method: GET
api_path: "/v1/agent-runs/{runId}/threads/{threadId}/messages"
canonical_url: https://wiblo.app/docs/developers/api/agent-threads/get-agent-thread-messages
last_updated: 2026-07-28T17:31:44+02:00
md_url: https://wiblo.app/docs/developers/api/agent-threads/get-agent-thread-messages.md
---

# Fetch a thread's message projection

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

Returns the user + assistant message transcript for the thread, rebuilt from the `message.*` events. 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}/messages \
  -H "Authorization: Bearer $WIBLO_TOKEN"
```

**TypeScript**

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

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

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

## Responses

**`200`** — The thread's projected messages. Returns `ThreadMessagesResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `messages` | `array<AgentMessage>` | 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 AgentMessage object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `messageId` | `string` | Yes |  |
| `role` | `"user" \| "assistant"` | Yes |  |
| `text` | `string` | Yes |  |
| `attachments` | `array<AgentAttachment>` | Yes |  |
| `status` | `"streaming" \| "completed"` | Yes |  |

### The AgentAttachment object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | `"image" \| "file"` | Yes |  |
| `path` | `string` | Yes |  |
| `url` | `string \| null` | No | Defaults to `null`. |
| `alt` | `string \| null` | No | Defaults to `null`. |
