AnthropicClaude Managed Agents

Stream Thread Events

Subscribe to one execution thread's event stream in real time.

Call Create session first and replace the example session ID with its returned ID.

GET /anthropic/v1/sessions/{session_id}/threads/{thread_id}/stream◐ Partial

Official Claude documentation ↗

Request parameters

  • session_idstring必填

    path: Session ID (path or query parameter).

  • thread_idstring必填

    path: Path parameter: the thread ID.

  • session_idstring必填

    query: Session ID (path or query parameter).

  • event_deltasarray可选

    query: When set, the connection also receives streaming delta events.

Returns

200

Subscribes to the selected thread live ledger using the session SSE implementation; the /agent API also supports a read-only WebSocket. The parent stream includes child creation, status and message events. Child approvals carry session_thread_id; confirmations and interrupts targeting that id are routed to the owned child.

Errors follow the Claude Managed Agents format — see error codes

Response

HTTP 200

Server-sent events

text/event-stream — chunk / event object

No field schema is declared.