Create Conversation

Start a new voice conversation with the agent. Returns a realtime voice session + short-lived client token so the caller can connect the audio pipeline directly. The agent is dispatched server-side; no additional client action required. Pass `dynamic_variables` to supply per-session values that override the agent's stored variable defaults for this one conversation. Keys in the `system__` namespace are rejected at this boundary.

Authentication

AuthorizationBearer

Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.

Path parameters

idstringRequired

Request

This endpoint expects an object.
transportstring or nullOptional
Transport hint. Omit to use the agent's default.
dynamic_variablesmap from strings to anyOptional

Per-session variable overrides that merge on top of the agent’s stored variable defaults for this one conversation. Keys in the reserved system__ namespace are rejected. Values must match the declared type of the corresponding variable definition on the agent.

Response

The created conversation with its realtime session token.
conversationobject
roomstring
tokenstring

Short-lived realtime session access token (JWT).

urlstring

Realtime session wss:// URL to connect to.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error