ruanrodrigues.rn
08/08/2025, 4:08 PMVapi Support Bot
08/08/2025, 4:10 PMid (UUID) returned from the credential creation step when associating your Zadarma number. Here’s the correct sequence:
bash
# Step 1: Create SIP credential (save the returned "id")
curl -L 'https://api.vapi.ai/credential' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_PRIVATE_KEY' \
-d '{
"provider": "byo-sip-trunk",
"name": "Zadarma Trunk",
"gateways": [{ "ip": "sip.zadarma.com" }],
"outboundLeadingPlusEnabled": true,
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_NUMBER",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
# Step 2: Use the returned "id" as "credentialId" in the phone number creation
curl -L 'https://api.vapi.ai/phone-number' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_PRIVATE_KEY' \
-d '{
"provider": "byo-phone-number",
"name": "Zadarma Number",
"number": "YOUR_VIRTUAL_NUMBER",
"numberE164CheckEnabled": false,
"credentialId": "YOUR_CREDENTIAL_ID"
}'
Ensure YOUR_CREDENTIAL_ID is the UUID from the first response, not a custom value.
If this still fails, please provide the exact API responses for further review.
[Reference: Zadarma SIP Integration Docs](https://docs.vapi.ai/advanced/sip/zadarma)
Source:
- [Zadarma SIP Integration Docs](https://docs.vapi.ai/advanced/sip/zadarma)ruanrodrigues.rn
08/11/2025, 7:34 AMruanrodrigues.rn
08/11/2025, 1:01 PMChiranjeet Mishra
08/12/2025, 6:33 AMruanrodrigues.rn
08/12/2025, 12:09 PMChiranjeet Mishra
08/13/2025, 10:50 PMcurl -L 'https://api.vapi.ai/credential' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_VAPI_PRIVATE_KEY' \
-d '{
"provider": "byo-sip-trunk",
"name": "Zadarma Trunk",
"gateways": [
{ "ip": "sip.zadarma.com", "inboundEnabled": false }
],
"outboundLeadingPlusEnabled": true,
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_NUMBER",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
Replace placeholders with your actual credentials and Vapi private key.GauravSingla
08/18/2025, 1:52 AMGauravSingla
08/18/2025, 1:53 AMGauravSingla
08/18/2025, 1:53 AM