Stream session output in real time
Changed onServer-Sent Events stream of session transcript updates. Streams turns (conversation format), raw messages (JSONL format), or structured messages based on the format query parameter. Emits activity and pending events for tool approval prompts.
Request
- The document declares no server URL.
- Auth: none declared
Path parameters
City name.
Session ID, alias, or runtime session_name.
Query parameters
Transcript format: conversation (default), raw, or structured.
Include thinking block text and signature in structured stream frames. Defaults to false; both are redacted otherwise.
Opaque structured transcript resume cursor from the REST snapshot. Last-Event-ID takes precedence on automatic SSE reconnect.
Headers
Opaque structured transcript resume cursor from the last received SSE frame. Takes precedence over after_cursor.
Response
OK
Changes
- ▲
the
queryrequest parameterformatwas restricted to a list of enum values - ▲
added
subschema #5: Event pending_clearedsubschema #6: Event structuredto theresponse propertyoneOflist for the response status - ▲
the
//response's property type changed fromintegertostringfor status - ▲
the
//response's property type changed fromintegertostringfor status - ▲
the
//response's property type changed fromintegertostringfor status - ▲
the
//response's property type changed fromintegertostringfor status - ▲
the
//response's property type changed fromintegertostringfor status - ○
added the new optional
headerrequest parameterLast-Event-ID - ○
added the new optional
queryrequest parameterafter_cursor - ○
added the new optional
queryrequest parameterinclude_thinking - ○
added the new enum value
conversationto thequeryrequest parameterformat - ○
added the new enum value
rawto thequeryrequest parameterformat - ○
added the new enum value
structuredto thequeryrequest parameterformat - ○
added the optional property
////to the response with the status - ○
added the optional property
////to the response with the status
- ▲