---
title: "订阅线程实时事件"
method: GET
path: "/agent/managed/v1/sessions/{sessionId}/threads/{threadId}/stream"
tags: ["Thread"]
---

# 订阅线程实时事件

`GET /agent/managed/v1/sessions/{sessionId}/threads/{threadId}/stream`

## Request

- Base URL: `https://agent-api.bigmodel.cn/api`
- URL: `https://agent-api.bigmodel.cn/api/agent/managed/v1/sessions/{sessionId}/threads/{threadId}/stream`
- Auth: HTTP bearer

实时订阅指定线程的完整事件；仅推送连接建立后的新事件。

<Accordion title="使用说明">

live-only；Thread 自己的完整流，primary id 使用 Session 频道。路径不是 /events/stream。

</Accordion>

## Path parameters

- `sessionId` string, required
- `threadId` string, required

## Query parameters

- `event_deltas[]` string[]

## Headers

- `zai-version` '2026-05-26', required
- `zai-beta` string, required

## Response `200`

成功

## Other responses

- `default`: 错误

## Changes

- **2026-11-03** `7fd61aa7f811`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bigmodel/apis/zhipu-ai-api/changes/agent/managed/v1/sessions/:sessionId/threads/:threadId/stream/get.md)

---

[API](https://skmtc.dev/bigmodel/apis/zhipu-ai-api.md) - [All operations](https://skmtc.dev/bigmodel/apis/zhipu-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bigmodel/apis/zhipu-ai-api/revisions/f2be7c0fcbb9?raw)
