Estefan
01/27/2026, 4:29 PMVapi Support Bot
01/27/2026, 4:31 PMcredential_id using the API. Here’s a sample curl command:
bash
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": "My SIP Trunk",
"gateways": [{ "ip": "YOUR_SIP_DOMAIN", "inboundEnabled": false }]
}'
The response will include your `credentialId`—use that in {your_credential_id} for your SIP configuration. For more details, see the [Vapi server authentication docs](https://docs.vapi.ai/server-url/server-authentication).
Source:
- [Server authentication](https://docs.vapi.ai/server-url/server-authentication)Estefan
01/27/2026, 5:41 PMEstefan
01/27/2026, 5:44 PMChiranjeet Mishra
01/28/2026, 4:53 AM