DomT
03/12/2026, 3:43 PMVapi Support Bot
03/12/2026, 3:44 PMDomT
03/14/2026, 12:09 PMChiranjeet Mishra
03/14/2026, 5:46 PMcredential_id for SIP configuration is not found in Organization Settings or Custom Credentials in the dashboard. It's generated when you create a SIP trunk credential via the Vapi API.
Here's how to get your credential_id:
Step 1: Create a SIP Trunk Credential via API
curl -X POST "https://api.vapi.ai/credential" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
-d '{
"provider": "byo-sip-trunk",
"name": "Your SIP Trunk Name",
"gateways": [{
"ip": "your-sip-provider-domain.com",
"inboundEnabled": false
}],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
Replace:
• YOUR_VAPI_PRIVATE_KEY with your API key from Organization Settings > API Keys
• your-sip-provider-domain.com with your SIP provider's domain (e.g., sip.zadarma.com, sip.telnyx.com)
• YOUR_SIP_USERNAME and YOUR_SIP_PASSWORD with your SIP credentials
Step 2: Get the Credential ID from the Response
The API response will return an id field—**this is your credential_id**:
{
"id": "d293b924-f68d-4cbc-850f-xxxxxxxxxxxxx",
"provider": "byo-sip-trunk",
"name": "Your SIP Trunk Name",
...
}
Step 3: Use in Your SIP URI
Use that ID in the format: {your_phone_number}@{credential_id}.sip.vapi.ai
Example: 15551234567@d293b924-f68d-4cbc-850f-xxxxxxxxxxxxx.sip.vapi.ai
Full documentation: [https://docs.vapi.ai/advanced/sip/sip-trunk](https://docs.vapi.ai/advanced/sip/sip-trunk)
Let me know if you need help with any of these steps!