stevechef_
04/07/2025, 11:02 PMVapi Support Bot
04/07/2025, 11:04 PMcurl -X POST https://api.vapi.ai/credential \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-vapi-private-api-key" \
-d '{
"provider": "byo-sip-trunk",
"name": "Telnyx Trunk",
"gateways": [
{
"ip": "sip.telnyx.com"
}
]
}'
## 4. Associate Your Phone Number with the SIP Trunk
Use this API call to associate your phone number with the SIP trunk:
```
curl -X POST https://api.vapi.ai/phone-number \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-vapi-private-api-key" \
-d '{
"provider": "byo-phone-number",Vapi Support Bot
04/07/2025, 11:04 PM## 5. Make Outbound Calls
Finally, to trigger outbound calls, use this API call:
curl --location 'https://api.vapi.ai/call/phone' \
--header 'Authorization: Bearer your-vapi-private-api-key' \
--header 'Content-Type: application/json' \
--data '{
"assistantId": "your-assistant-id",
"customer": {
"number": "tech-prefix-with-phone-number-without-plus-signal",
"numberE164CheckEnabled": false
},
"phoneNumberId": "your-phone-id"
}'
```
**Important note about the phone number format**: If your phone number is +6699999999 and your Tech Prefix is 1234, the number should look like this: 12346699999999 (without the + sign).
Is there anything specific about this process you'd like me to clarify further?
Source:
- [Vapi documentation](https://docs.vapi.ai/advanced/sip/telnyx)stevechef_
04/07/2025, 11:59 PMSahil
04/08/2025, 7:27 PMEnyedi Péter
04/09/2025, 7:53 AMSahil
04/10/2025, 11:36 PMEnyedi Péter
04/11/2025, 2:49 PMSahil
04/11/2025, 11:00 PMShaneng
04/16/2025, 4:51 PMSahil
04/21/2025, 1:23 PM