This guide shows how to integrate ElevenLabs with Vobiz programmatically to enable outbound calling and automate voice calls with ultra-realistic AI voices.
Perfect for:
- Application integration
- Bulk calling campaigns
- Automation workflows
- Custom call triggers
Prerequisites
- Vobiz account with SIP trunk → Create account
- ElevenLabs account with API key → Sign up
- ElevenLabs API key → Get API key
- Phone number from Vobiz (for caller ID)
Part 1: Vobiz setup
Create a SIP trunk
Create a SIP trunk in Vobiz to handle voice traffic.
See: Vobiz SIP trunks documentation
Save these values from the response:
sip_domain(for example,abc123def.sip.vobiz.ai)usernamepassword
Get a phone number
Purchase a phone number for outbound caller ID.
See: Vobiz phone numbers documentation
Part 2: ElevenLabs setup
Step 1: Get your API key
Via dashboard:
- Go to ElevenLabs Developer → API Keys
- Click Create API Key
- Name your key (for example, “Vobiz Integration”)
- Set permissions:
- ElevenLabs Agents: Write (Required)
- Voices: Read (Required)
- User: Read (Optional)
- Click Create and copy the key
Step 2: List available voices
voice_id- use this when creating your agentname- voice name for identificationcategory- voice type (premade, cloned, etc.)
voice_id - you’ll need it in Step 3.
Step 3: Create an agent
voice_id_here→ your chosen voice ID from Step 2
agent_id - you’ll need it to make calls.
Part 3: Connect Vobiz to ElevenLabs
Step 1: Import your phone number
Register your Vobiz phone number with ElevenLabs for outbound calling.
+911234567890→ your Vobiz phone numberabc123def.sip.vobiz.ai→ your Vobiz SIP domainyour_username→ your Vobiz usernameyour_password→ your Vobiz password
phone_number_id - you’ll need it in Step 2.
Get Vobiz credentials:
- Via console: Vobiz Console → Trunks
- Via API: Vobiz API reference
Step 2: Make an outbound call
agent_your_agent_id_here→ your agent ID from Part 2, Step 3phnum_your_phone_number_id_here→ your phone number ID from Step 1+919988776655→ destination number to call
- The phone rings at the destination
- When answered, the agent speaks
- The conversation begins with a natural voice
Verification
List your agents
Check call logs
View your call history in ElevenLabs Dashboard → Call History.
Test call flow:
- Run Step 2 to initiate a call.
- Wait for the destination phone to ring.
- Answer the call.
- The AI agent will greet and speak.
- Check the call transcript in the ElevenLabs Dashboard.
Troubleshooting
”Unauthorized” / 401 error
Problem: ElevenLabs API key is invalid or expired.
Fix:
- Verify you copied the entire key (starts with
sk_). - Check the API key has ElevenLabs Agents: Write permission.
- Generate a new key at ElevenLabs Developer.
”Not Found” / 404 error
Problem: Agent ID or phone number ID doesn’t exist.
Fix:
- List your agents to verify the agent ID is correct.
- Check the phone number is configured in ElevenLabs Dashboard.
- Ensure you’re using the correct ID format.
SIP 408 request timeout
Problem: The Vobiz trunk cannot reach ElevenLabs SIP servers.
Fix:
- Verify the Vobiz trunk configuration in Vobiz Console.
- Ensure transport is set to
tcp. - Check the trunk status is
active. - See: Vobiz SIP trunks guide.
”Insufficient balance”
Problem: Vobiz account has no credits.
Fix:
- Log in to Vobiz Console → Billing and add funds.
Call connects but silent
Problem: Agent configuration issue or voice not set.
Fix:
- Verify the agent has
first_messageconfigured. - Check the agent has a valid
voice_idinconversation_config. - Test the voice in the ElevenLabs dashboard first.
- View call logs in ElevenLabs Dashboard.
Call doesn’t connect
Problem: Wrong phone number format or trunk configuration.
Fix:
- Use E.164 format:
+919988776655(with+and country code). - Verify the Vobiz trunk is active.
- Check Vobiz CDR logs for call attempts at Vobiz Console.
- Ensure the phone number is not blocked.
Quick reference
Required credentials
| Credential | Where to get | Example |
|---|---|---|
| ElevenLabs API Key | ElevenLabs Developer → API Keys | sk_your_elevenlabs_api_key_here |
| Voice ID | Part 2, step 2 (List Voices) | voice_id_here |
| Agent ID | Part 2, step 3 (Create Agent) | agent_your_agent_id_here |
| Phone Number ID | Part 3, step 1 (Import Phone) | phnum_your_phone_number_id_here |
| Vobiz SIP Domain | Vobiz Console → Trunks | abc123def.sip.vobiz.ai |
| Vobiz Username | Vobiz Console → Trunks | your_username |
| Vobiz Password | Vobiz Console → Trunks | your_password |
API endpoints
Base URL: https://api.elevenlabs.io - all requests require xi-api-key: YOUR_ELEVENLABS_API_KEY
| Action | Method | Endpoint |
|---|---|---|
| List voices | GET | /v1/voices |
| Create agent | POST | /v1/convai/agents |
| List agents | GET | /v1/convai/agents |
| Import phone number | POST | /v1/convai/phone-numbers |
| Make outbound call | POST | /v1/convai/sip-trunk/outbound-call |
Common errors
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Wrong API key | Regenerate at ElevenLabs Developer |
| 404 Not Found | Wrong agent or phone ID | List agents to verify IDs |
| 408 SIP timeout | Trunk config wrong | Check Vobiz Console → Trunks |
| Insufficient balance | Low Vobiz credits | Add funds in Vobiz Console |