v47

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-075441165.7 KB
Thread Runs

Stream Run

Stream an existing run's execution via SSE.

Attach to a run that was created without streaming (e.g. via the create endpoint) to receive its events in real time. If the run has already finished, a single end event is emitted. Use the Last-Event-ID header to resume from a specific event after a disconnect.

A periodic SSE keepalive comment is sent every KEEPALIVE_INTERVAL_SECS so idle proxies don't drop attached streams.

get/threads/{thread_id}/runs/{run_id}/stream

Path parameters

thread_idstring required
run_idstring required

Query parameters

_stream_modestring nullable

Override the stream mode for this connection.

Override the stream mode for this connection.

Headers

Last-Event-IDstring nullable

Response

Server-Sent Events stream

{"stackTrail":"paths:/threads/{thread_id}/runs/{run_id}/stream:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}