Create Session
Path parameters
Agent id (prefixed external id, agent_...).
Headers
Request
Opaque identifier for the end-user (e.g. your app’s user ID). Stamped onto the conversation. Optional - defaults to an anonymous per-session ID.
Per-session variable overrides that merge on top of the agent’s
stored variable defaults for this one session. Keys in the
reserved system__ namespace are rejected at this boundary.
Values must match the declared type of the corresponding variable
definition on the agent (a string type expects a JSON string,
number expects a JSON number, etc.).
Response headers
Active-call concurrency budget: the per-workspace cap on simultaneously-active voice calls (the voice analog of a token axis). Sent on successful call-start responses (web session, outbound call).
Active-call concurrency budget: free active-call slots after this
call reserved one. 0 on a 429 that rejected for concurrency
exhaustion (concurrency_limit_reached).
Response
The created session with its realtime token + URL.
Short-lived realtime session access token (JWT).
Realtime session wss:// URL to connect to.