Subscribe to live call events (SSE)
Subscribe to live call events (SSE)
Authentication
API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.
Headers
Required when using session-cookie auth. API-token auth may infer the organization from the token.
Query parameters
Response
Timestamp used by sse_init and sse_close
Telephony ID for call_start
Metadata for call_end, agent_error, or agent_log
Turn latency value for turn_latency
STT API latency in milliseconds for turn_latency
STT-to-LLM latency in milliseconds for turn_latency
Smart-turn latency in milliseconds for turn_latency
LLM API latency in milliseconds for turn_latency
LLM-to-TTS latency in milliseconds for turn_latency
TTS API latency in milliseconds for turn_latency
TTS-to-audio latency in milliseconds for turn_latency
Total turn latency in milliseconds for turn_latency
Turn index for turn_latency
Whether the turn was interrupted for turn_latency
Whether smart turn was enabled for turn_latency
Partial transcription text (only for user_interim_transcription)
Final transcription text (only for user_transcription)
Text spoken by the agent (only for tts_completed)
TTS latency in milliseconds (only for tts_completed)
Per-turn metrics payload for metrics events. Server emits an
array of {processor, model, value} entries (one per
pipeline stage), not a single object. The SDK previously
dropped every metrics SSE event with a pydantic
ValidationError when this was typed as an object (122
events on a 40s call); typing it as an array of objects
fixes the decode.
Node ID for agent_node_state
Node name for agent_node_state
Node type for agent_node_state
Context payload for agent-node and tool-call events
Source node ID for hopping
Destination node ID for hopping
Knowledge base ID for knowledgebase
User transcript for knowledgebase
Response payload for knowledgebase, API, or tool-call events
Latency for knowledgebase or variable_extraction
Variables extracted by variable_extraction
Prompt used for variable_extraction
HTTP method for pre_call_api or post_call_api
Headers for pre_call_api or post_call_api
Body for pre_call_api or post_call_api
Timeout for pre_call_api or post_call_api
Extracted variables for pre_call_api or post_call_api
Next node ID for pre_call_api or post_call_api
Success status for API and tool-call events
Turn ID for tool-call events
Tool call ID for tool-call events
Function name for tool-call events
Latency in milliseconds for tool_call_end
Recording URL for call_recording
Recording status for call_recording

