---
title: "Stream one thread's events (SSE)"
description: "Server-Sent Events stream filtered to one conversation: replays durable events with seq > after whose thread_id matches, then attaches live."
api_method: GET
api_path: "/v1/agent-runs/{runId}/threads/{threadId}/events"
canonical_url: https://wiblo.app/docs/developers/api/agent-threads/get-agent-thread-events
last_updated: 2026-07-28T17:12:38+02:00
md_url: https://wiblo.app/docs/developers/api/agent-threads/get-agent-thread-events.md
---

# Stream one thread's events (SSE)

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

Server-Sent Events stream filtered to one conversation: replays durable events with `seq > after` whose `thread_id` matches, then attaches live. Same frame shape as the run-wide stream (`id: <seq>`, `event: <type>`, `data: <AgentEventEnvelope>`). The run-wide `GET .../events` carries every thread; this one carries a single `threadId`. Not rate-limited (long-lived stream).

## Path parameters

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

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `after` | `integer \| null` | No | Replay cursor. Replays this thread's durable events with `seq` strictly greater than this value, then attaches live. Defaults to 0. |

## Request

**curl**

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

**TypeScript**

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

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

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

## Responses

**`200`** — An event stream for one thread. The body is `text/event-stream`; each `data:` line is one `AgentEventEnvelope` JSON object.

**`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`.
