martyvandeveerdonk
11/14/2025, 10:40 AMmartyvandeveerdonk
11/17/2025, 11:37 AMChiranjeet Mishra
11/17/2025, 7:54 PMbash
curl -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": "PLIVO Trunk", "gateways": [{ "ip": "YOUR_PLIVO_TERMINATION_SIP_DOMAIN", "inboundEnabled": false }] }'
4. **Associate Phone Number**:
- Purchase a number through your SIP provider and associate it with the trunk:
bash
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", "name": "PLIVO SIP Number", "number": "YOUR_PLIVO_PHONE_NUMBER", "numberE164CheckEnabled": false, "credentialId": "YOUR_CREDENTIAL_ID" }'
You can find more detailed steps and example code in our [Plivo SIP Integration](https://docs.vapi.ai/advanced/sip/plivo) documentation. Make sure to replace placeholders with actual values specific to your setup.
Feel free to proceed with these steps and let us know if you encounter any issues.