Documentation Index
Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt
Use this file to discover all available pages before exploring further.

Prerequisites
- A Vobiz account with a SIP trunk
- A Vapi account with a private key
- A Vapi assistant - create one in the dashboard
- A 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 the SIP trunks documentation. Save these values from the response:sip_domain(for example,5f3a607b.sip.vobiz.ai)usernamepassword
Get a phone number
Purchase a phone number for outbound caller ID or inbound calls. See the phone numbers documentation.Part 2: Vapi setup
Get your Vapi private key
- Log in to the Vapi Dashboard.
- Click your profile icon (top right) and go to Settings → API Keys.
- Click Create new key and copy the key.
Get your assistant ID
- In the Vapi Dashboard, go to Assistants.
- Select your assistant (or create one) and copy the Assistant ID.
Part 3: Connect Vobiz to Vapi (outbound)
Step 1: Create the SIP credential in Vapi
Register your Vobiz SIP trunk with Vapi for outbound calling.bfab10fb.sip.vobiz.ai→ your Vobiz SIP domainVapi_user→ your Vobiz usernamePassword@123→ your Vobiz password
id - this is your credential ID.
Step 2: Register the phone number
Associate your phone number with the SIP credential for caller ID.id - this is your phone number ID.
Step 3: Make an outbound call
Call initiated. The phone will ring, and when answered, your AI assistant will speak.
Verification
Check call status
View call logs in Vapi Dashboard → Calls, or via API:Test call flow
- Run Step 3 to initiate a call.
- Wait for the destination phone to ring.
- Answer the call.
- The AI assistant will greet and speak.
- Check the call transcript in the Vapi Dashboard.
Inbound calls
Route calls placed to your Vobiz number directly to your Vapi AI assistant using the API.Step 1: Create an inbound SIP credential in Vapi
Create a SIP trunk credential configured for inbound only - using the Vobiz gateway IP instead of a SIP domain.id - this is your inbound credential ID (also called Trunk ID).
Step 2: Get the trunk ID
If you didn’t save the ID from Step 1, retrieve it by listing all credentials:13.233.44.61 and outboundEnabled: false. The id field is your trunk ID.
Step 3: Configure the inbound trunk in Vobiz
Create an inbound trunk in the Vobiz Console that routes calls to Vapi:- Go to Vobiz Console → SIP Trunks → Inbound Trunk.
- Click Create New Trunk.
- Set Name and Transport to
UDP. - Set Primary URI to
<VAPI_TRUNK_ID>.sip.vapi.ai- for example,46deea29-645d-44a3-bf42-7c6ec2d4b65c.sip.vapi.ai. - Link your Vobiz phone number to this trunk.
- Click Save.
Step 4: Register the inbound phone number in Vapi
Register your Vobiz number with the inbound credential and assign your assistant:+918071387376→ your Vobiz phone number46deea29-...→ your inbound credential ID from Step 1YOUR_ASSISTANT_ID→ your Vapi assistant ID
Inbound setup complete! Dial your Vobiz number - the call will route to your Vapi AI assistant automatically.
Troubleshooting
”Unauthorized” / “Invalid API key”
Vapi private key is incorrect.- Verify you copied the entire key.
- Generate a new key at Vapi Dashboard → Settings → API Keys.
”Couldn’t get assistant”
Wrong assistant ID or it doesn’t exist.- Run
curl "https://api.vapi.ai/assistant" -H "Authorization: Bearer YOUR_KEY"and use the correctid. - Don’t confuse credential ID with assistant ID.
”SIP authentication failed”
Vobiz credentials are incorrect.- Verify SIP domain, username, password in Vobiz Console.
- Use the exact
sip_domain(for example,bfab10fb.sip.vobiz.ai), not a genericsip.vobiz.ai.
Call connects but silent
Assistant configuration issue.- Verify the assistant has a “First Message” configured.
- Check the assistant has a voice provider set up.
- View call logs in Vapi Dashboard → Calls.
Call doesn’t connect
- Use E.164 format:
+919148223344. - Verify your Vobiz trunk is active in Vobiz Console.
Quick reference
Required credentials
| Credential | Where to get | Used in |
|---|---|---|
| Vapi private key | Vapi Dashboard → Settings → API Keys | All API requests |
| Vobiz SIP domain | Vobiz Console → Trunks → sip_domain | Step 1: gateways[0].ip |
| Vobiz username | Vobiz Console → Trunks | Step 1: authUsername |
| Vobiz password | Vobiz Console → Trunks | Step 1: authPassword |
| Phone number | Vobiz Console → Numbers | Step 2: number |
| Credential ID | Step 1 response id | Step 2: credentialId |
| Phone number ID | Step 2 response id | Step 3: phoneNumberId |
| Assistant ID | Vapi Dashboard → Assistants | Step 3: assistantId |
API endpoints
All requests requireAuthorization: Bearer YOUR_VAPI_PRIVATE_KEY.
| Action | Method | Endpoint |
|---|---|---|
| Create SIP credential | POST | https://api.vapi.ai/credential |
| Register phone number | POST | https://api.vapi.ai/phone-number |
| Make outbound call | POST | https://api.vapi.ai/call/phone |
| List assistants | GET | https://api.vapi.ai/assistant |
| Get call details | GET | https://api.vapi.ai/call/{callId} |
Common errors
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Wrong Vapi private key | Verify the key in the dashboard |
| Assistant does not exist | Wrong assistant ID | List assistants via API |
| SIP auth failed | Wrong Vobiz credentials | Check Vobiz Console → Trunks |
| Insufficient balance | Low Vobiz credits | Add funds in the Vobiz Console |
| Phone format error | Missing + or country code | Use +919148223344 or 09148223344 |