Stream session status
Opens a Server-Sent Events (SSE) stream for a session. The stream sends
a status event immediately after connecting and whenever the session
status changes. Each event’s data field contains a session snapshot
with messages: null.
While the session remains running or follow_up_running, the server
sends a : keepalive comment every 15 seconds when no status change
occurs. SSE clients ignore comments automatically.
The stream closes after sending an idle, failed, or cancelled
status. After receiving a terminal status, retrieve the final
conversation with GET /v1/sessions/{session_id}.
If the connection closes before a terminal status arrives, reconnect
to this endpoint. The first event always reports the current status, so
clients do not need an event cursor or Last-Event-ID header.
Authorizations
Bearer token in the Authorization header — for example,
Authorization: Bearer trv_ak_your_api_key_here. Each key is bound to a
specific user and organization.
Path Parameters
The unique identifier of the session.
Response
Session status event stream.
The response is of type string.