Smith (hasbulla)
06/06/2025, 7:29 PMVapi Support Bot
06/06/2025, 7:30 PMbash
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": "My SIP Trunk",
"gateways": [{ "ip": "YOUR_SIP_SERVER_ADDRESS" }]
}'
Then, link your phone number to this credential:
bash
curl -X POST "https://api.vapi.ai/phone-number" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
-d '{
"provider": "byo-phone-number",
"name": "My Number",
"number": "YOUR_PHONE_NUMBER",
"credentialId": "YOUR_CREDENTIAL_ID"
}'
Replace the placeholders with your actual details. This will ensure Vapi uses your SIP trunk for calls.
[See full docs here](https://docs.vapi.ai/advanced/sip/sip-trunk)
Sources:
- [SIP Trunking Vapi Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
- [API Reference: Create Phone Number](https://docs.vapi.ai/api-reference/phone-numbers/create)Kings_big💫
06/07/2025, 7:40 AM