fair-rose
fair-rose2h ago

SIP Trunk Credential with API

Hey , is there any option to generate credential for Custom SIP Integration via API call?
2 Replies
Vapi Support Bot
Yes, you can generate a credential for Custom SIP Integration via API.
Use the following example to create a SIP trunk credential with your provider's details:
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 Custom Trunk",
"gateways": [{ "ip": "your-sip-provider.com", "inboundEnabled": false }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
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 Custom Trunk",
"gateways": [{ "ip": "your-sip-provider.com", "inboundEnabled": false }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
Replace the placeholders with your actual SIP provider info.
For more details, see the Vapi SIP trunk documentation. Source: - Vapi SIP Trunk Documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
Duckie
Duckie2h ago
Message marked as helpful by @emre! 🎉

Did you find this page helpful?