Endpoints
TwoGET endpoints return a text/event-stream response:
Both use the same authentication as the rest of the API — a secret key in the
Authorization header — and enforce the same visibility as the corresponding
GET endpoints for the run or thread.
Consuming the stream
type field. Event types include
run_started, message_started, text_chunk, text_complete,
reasoning_progress, reasoning_complete, tool_call_start,
tool_call_complete, artifact, and error. Reasoning text is never
streamed or returned; the reasoning events only mark progress and completion.
Handle unknown type values by ignoring them so new event types do not break
your client.
The stream ends with a [DONE] sentinel frame. When you have it, close the
connection.
Resuming after a disconnect
If the connection drops, reconnect to the same endpoint with acursor query
parameter set to the position you last processed to resume without replaying
the whole stream: