Connect Retell AI to Vobiz SIP trunking via API - programmatic outbound and inbound call routing for AI voice agents across 130+ countries.
This guide shows how to integrate Retell AI with Vobiz using the API for automated outbound calling - ideal for developers building applications that trigger AI calls programmatically.
💡 Tip: Prefer a visual dashboard? Check out the dashboard setup guide for a no-code integration method.
Get Vobiz credentials:
key_).⚠️ Warning: Keep this key secret - never commit it to git or share publicly. Store it securely in environment variables.
Retrieve all agents to get the agent_id you'll use for calls:
bashcurl "https://api.retellai.com/list-agents" \ -H "Authorization: Bearer key_abc123xyz789example"
Example response:
json[ { "agent_id": "agent_abc123example", "agent_name": "Customer Support Agent", "voice_id": "11labs-Rachel", "language": "en-US" } ]
What to extract:
agent_id - use this when making callsagent_name - human-readable labelvoice_id - the voice the agent usesCopy the agent_id for the agent you want to use.
Add your Vobiz phone number and SIP trunk configuration to Retell:
bashcurl "https://api.retellai.com/create-phone-number" \ -X POST \ -H "Authorization: Bearer key_abc123xyz789example" \ -H "Content-Type: application/json" \ -d '{ "phone_number": "+1234567890", "phone_number_type": "custom", "nickname": "Vobiz Main Line", "outbound_agent_id": "agent_abc123example", "sip_outbound_trunk_config": { "termination_uri": "abc123.sip.vobiz.ai", "transport": "TCP", "auth_username": "your_username", "auth_password": "your_password" } }'
Required fields:
| Field | Description |
|---|---|
phone_number | Your Vobiz number in E.164 format |
phone_number_type | Must be "custom" for SIP trunks |
outbound_agent_id | Agent ID from Step 2 |
sip_outbound_trunk_config.termination_uri | Vobiz SIP domain (without the sip: prefix) |
sip_outbound_trunk_config.transport | "TCP" (recommended) |
sip_outbound_trunk_config.auth_username | Vobiz trunk username |
sip_outbound_trunk_config.auth_password | Vobiz trunk password |
ℹ️ Note: Get your Vobiz credentials from Vobiz Console → Trunks → your trunk.
Trigger an outbound AI call programmatically:
bashcurl "https://api.retellai.com/v2/create-phone-call" \ -X POST \ -H "Authorization: Bearer key_abc123xyz789example" \ -H "Content-Type: application/json" \ -d '{ "from_number": "+1234567890", "to_number": "+10987654321", "agent_id": "agent_abc123example" }'
Required parameters:
| Field | Description |
|---|---|
from_number | Your configured Vobiz number (caller ID) |
to_number | Destination number to call (E.164 format) |
agent_id | Which agent to use for the call |
Example response:
json{ "call_id": "call_abc123xyz789", "call_status": "registered", "from_number": "+1234567890", "to_number": "+10987654321", "direction": "outbound" }
Call status values:
registered - call initiatedringing - phone is ringingongoing - call connectedended - call finished✅ Success: Call initiated! The destination phone will ring, and when answered, the AI agent will speak.
Invalid API key.
key_.Phone number not configured in Retell.
Possible causes:
"UDP" instead of "TCP" in the trunk config.abc123.sip.vobiz.ai); do not include the sip: prefix.Agent not configured or not published.
Base URL: https://api.retellai.com
Authentication: Authorization: Bearer YOUR_API_KEY
| Endpoint | Method | Purpose |
|---|---|---|
/list-agents | GET | List all agents |
/list-phone-numbers | GET | List configured numbers |
/create-phone-number | POST | Add phone number with SIP trunk |
/v2/create-phone-call | POST | Make outbound call |
/get-call/{call_id} | GET | Get call details |
bash# 1. List agents curl "https://api.retellai.com/list-agents" \ -H "Authorization: Bearer key_YOUR_KEY_HERE" # 2. Configure phone number (one-time) curl "https://api.retellai.com/create-phone-number" \ -X POST \ -H "Authorization: Bearer key_YOUR_KEY_HERE" \ -H "Content-Type: application/json" \ -d '{ "phone_number": "+1234567890", "phone_number_type": "custom", "outbound_agent_id": "agent_YOUR_AGENT_ID", "sip_outbound_trunk_config": { "termination_uri": "abc123.sip.vobiz.ai", "transport": "TCP", "auth_username": "your_username", "auth_password": "your_password" } }' # 3. Make a call curl "https://api.retellai.com/v2/create-phone-call" \ -X POST \ -H "Authorization: Bearer key_YOUR_KEY_HERE" \ -H "Content-Type: application/json" \ -d '{ "from_number": "+1234567890", "to_number": "+10987654321", "agent_id": "agent_YOUR_AGENT_ID" }'
✅ Success: Your Retell AI agents can now make outbound calls through Vobiz programmatically - perfect for automated campaigns and application integrations.
Connect 3CX PBX to Vobiz SIP trunking for inbound and outbound calling across 130+ countries - configure a generic SIP trunk in minutes.
Connect an Agora Conversational AI agent to Vobiz SIP trunking - add a Vobiz number to Agora for outbound campaigns and route inbound calls to your agent, including India and 130+ countries.
Bolna ships Vobiz as a built-in telephony provider. Paste two credentials into the Providers screen and your agents place and answer calls on numbers in 130+ countries, reaching 190, with audio streaming rather than a SIP trunk.
We use cookies to run this site and, with your permission, to understand how it's used. Read our Cookie Policy.