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.
/anthropic/v1/sessions/{session_id}/threads/{thread_id}/stream◐ PartialOfficial 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.