POST
/v1/convai/sip-trunk/outbound-call
ElevenLabs APIHandle An Outbound Call Via Sip Trunk
- Base URL
- https://api.elevenlabs.io
- Auth
- xi-api-key: <ELEVENLABS_API_KEY>
- Last verified
- 2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 227 tokens · Vary: Accept
→ 227 tokens · Vary: Accept
Critical gotchas
Authentication uses the non-standard xi-api-key header, not Authorization: Bearer. Sending a Bearer token returns HTTP 401.
Text-to-speech responses are raw binary audio, not JSON. Write the body to a file (--output speech.mp3) rather than parsing it.
cURL
curl -X POST 'https://api.elevenlabs.io/v1/convai/sip-trunk/outbound-call' \ -H "xi-api-key: $ELEVENLABS_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "agent_id": "string", "agent_phone_number_id": "string", "to_number": "string", "conversation_initiation_client_data": { "conversation_config_override": { "agent": { "first_message": "Hello, how can I help you today?", "language": "en", "prompt": { "knowledge_base": [], "llm": "gemini-2.0-flash-001", "prompt": "You are a helpful assistant that can answer questions about the topic of the conversation.", "tool_ids": [] } }, "asr": { "keywords": [ "hello", "world" ] }, "conversation": { "max_duration_seconds": 600 }, "tts": { "model_id": "eleven_turbo_v2", "pronunciation_dictionary_locators": [], "similarity_boost": 0.8, "speed": 1, "stability": 0.5, "voice_id": "cjVigY5qzO86Huf0OWal" }, "turn": { "soft_timeout_config": { "message": "Hhmmmm...yeah." } } }, "custom_llm_extra_body": {}, "user_id": "string", "source_info": { "source": "unknown", "version": "string" }, "branch_id": "string", "environment": "string", "starting_workflow_node_id": "string", "procedure_ids": [ "string" ], "dynamic_variables": {} }, "telephony_call_config": { "ringing_timeout_secs": 60, "twilio_call_recording_enabled": false, "twilio_machine_detection": { "mode": "enable" } }}'Get a free ElevenLabs API key → sponsored
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| agent_id | body | string | Yes | Request body field agent_id. |
| agent_phone_number_id | body | string | Yes | Request body field agent_phone_number_id. |
| to_number | body | string | Yes | Request body field to_number. |
| conversation_initiation_client_data | body | object | No | Request body field conversation_initiation_client_data. |
| telephony_call_config | body | object | No | Request body field telephony_call_config. |
Response 200 OK
{
"success": true,
"message": "string",
"conversation_id": "string",
"sip_call_id": "string"
}