Prerequisites
- Retell AI account → Sign up
- Vobiz account with SIP trunk → Create account
- Retell AI agent created → Create in dashboard
- Phone number from Vobiz (for caller ID)
- Console: Vobiz Console → Trunks
- API: Vobiz API reference
Step 1: Get your API key
- Go to Retell Dashboard → Settings → API Keys.
- Click Create API Key.
- Copy the key (it starts with
key_).
Step 2: List available agents
Retrieve all agents to get theagent_id you’ll use for calls:
agent_id- use this when making callsagent_name- human-readable labelvoice_id- the voice the agent uses
agent_id for the agent you want to use.
Step 3: Configure phone number with SIP trunk
Add your Vobiz phone number and SIP trunk configuration to Retell:Get your Vobiz credentials from Vobiz Console → Trunks → your trunk.
Step 4: Make an outbound call
Trigger an outbound AI call programmatically:
Example response:
registered- call initiatedringing- phone is ringingongoing- call connectedended- call finished
Call initiated! The destination phone will ring, and when answered, the AI agent will speak.
Step 5: Configure inbound calls
Steps 1-4 cover outbound. Inbound needs a second, separate Vobiz trunk pointing at Retell’s SIP address, with your number assigned to it. It is pure trunk-based routing — no Vobiz application or answer webhook is involved.1
Create the origination URI
Point a URI at Retell’s inbound SIP host with Create Origination URI.Keep the
id from the response — it is the URI’s UUID.Transport is not settable at creation. A new URI gets an inferred transport, and Update Origination URI accepts only
name and priority. To pin UDP or TCP explicitly, set it on the URI in the Console — see the dashboard guide.2
Create the inbound trunk with that URI as primary
Create an inbound trunk and attach the URI from the previous step as its primary. See Create a Trunk for the full field list.A trunk created without a primary URI has nowhere to send the call, so set it at creation or update the trunk afterwards with Update a Trunk.Keep the returned
trunk_id.3
Assign your number to the trunk
Route the number to the inbound trunk with Assign Number to Trunk. The phone number is URL-encoded in the path, so Use the same number you configured for outbound.
+ becomes %2B.4
Assign the inbound agent in Retell
Attach the agent that should answer, with the Retell API:
inbound_agent_id and outbound_agent_id are separate fields on the same number, so one number can answer with one agent and dial out with another.Inbound is live. Call your Vobiz number from any phone — the Retell agent should answer.
Troubleshooting
401 Unauthorized
Invalid API key.- Verify the API key in Retell Dashboard → Settings.
- Ensure it starts with
key_.
”Phone number not found”
Phone number not configured in Retell.- Run Step 3 to add the phone number with the SIP trunk.
- Verify the number format is E.164.
Call fails immediately
Possible causes:- Wrong SIP credentials - verify Vobiz username/password at Vobiz Console.
- Wrong transport type - try
"UDP"instead of"TCP"in the trunk config. - Incorrect SIP domain - must be the exact Vobiz domain (for example,
abc123.sip.vobiz.ai); do not include thesip:prefix. - Insufficient balance - check your Vobiz account has credits at Vobiz Console. See account balance.
Agent doesn’t speak
Agent not configured or not published.- Ensure the agent is published in Retell Dashboard → Agents.
- Check the agent has a voice configured.
- Verify the agent ID matches the phone number config.
Quick reference
API endpoints
Base URL:https://api.retellai.com
Authentication: Authorization: Bearer YOUR_API_KEY
Vobiz endpoints used for inbound routing — base
https://api.vobiz.ai, auth X-Auth-ID / X-Auth-Token:
Complete call flow
Resources
Your Retell AI agents can now make outbound calls through Vobiz programmatically - perfect for automated campaigns and application integrations.