Skip to main content
Every endpoint on this page requires either a Clerk-issued JWT (Authorization: Bearer <token>) or an organization API key (x-api-key: pk_…). Anonymous calls return 401 Unauthorized. See Authentication for the full setup.
The agent_id must belong to a voice-enabled agent. The phone_number_id must be a provisioned outbound number in your organization — list them with GET /api/v1/phone-numbers.

Request

string
required
UUID of the outbound phone number to dial from.
string
required
Destination number in E.164 format (e.g. +971501234567).
string
required
UUID of the agent that will drive the conversation.
integer
default:"100"
Maximum call duration in seconds. The call is force-terminated when this elapses.
object
Free-form key/value map. Every key is available as {{key}} in the system prompt and is echoed back verbatim in webhooks regardless of whether the prompt referenced it. Use this for both prompt context and correlation IDs. See Session variables.

Code examples

Sample response

The same sessionId flows in session.created / session.ended webhooks and is the path parameter for GET /api/v1/chat/sessions/{sessionId}.
For high-volume outbound calling, use Call Campaigns instead — they manage retries, scheduling, and contact lists automatically.