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
UUID of the outbound phone number to dial from.
Destination number in E.164 format (e.g.
+971501234567).UUID of the agent that will drive the conversation.
Maximum call duration in seconds. The call is force-terminated when this elapses.
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
sessionId flows in session.created / session.ended webhooks and is the path parameter for GET /api/v1/chat/sessions/{sessionId}.