SIP Trunk Credential with API
# support
e
Hey , is there any option to generate credential for Custom SIP Integration via API call?
v
Yes, you can generate a credential for Custom SIP Integration via API. Use the following example to create a SIP trunk credential with your provider's details:
Copy code
bash
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": "Your Custom Trunk",
    "gateways": [{ "ip": "your-sip-provider.com", "inboundEnabled": false }],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD"
    }
  }'
Replace the placeholders with your actual SIP provider info. For more details, see the [Vapi SIP trunk documentation](https://docs.vapi.ai/advanced/sip/sip-trunk). Source: - [Vapi SIP Trunk Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
v
Message marked as helpful by @emre! 🎉
2 Views