Skip to main content
GET
/
sessions
/
{session_id}
/
stream
Subscribe to a session's event stream (SSE)
curl --request GET \
  --url https://api.example.com/sessions/{session_id}/stream \
  --header 'x-user-id: <x-user-id>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Headers

x-user-id
string
required

Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.

Path Parameters

session_id
string
required

Query Parameters

agent_id
string
required

Agent the session belongs to.

Response

Server-Sent Events stream of AgentEvent objects