Stefanos
09/22/2025, 9:14 AMVapi Support Bot
09/22/2025, 9:15 AMbash
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 Trunk Name",
"gateways": [{ "ip": "YOUR_SIP_PROVIDER_DOMAIN", "inboundEnabled": false }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
Replace the placeholders with your actual details. If you still get a validation error, double-check your SIP provider domain and credentials, and ensure your provider has whitelisted Vapi's signaling IPs.
[See full API reference](https://docs.vapi.ai/advanced/sip/sip-trunk#create-a-sip-trunk-credential-in-vapi)
Source:
- [Vapi SIP Trunk Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)Stefanos
09/23/2025, 9:01 AMVapi Support Bot
09/23/2025, 9:01 AM