SIP Trunk Credentials API: Missing Fields (domain,...
# support
s
Hi everyone, I'm trying to find the complete JSON structure for the SIP credentials API call (https://api.vapi.ai/credential). The documentation at https://docs.vapi.ai/advanced/sip/sip-trunk shows a Zadarma example with limited fields, but the GUI (screenshot attached) displays many more options like domain, realm, usePublicIP, etc. Question: Does anyone have the complete API documentation or can share the full JSON body structure that matches all the keys from the GUI screenshot? I want to create the SIP trunk via API instead of using the potentially buggy GUI. Thanks! https://cdn.discordapp.com/attachments/1438510588194979942/1438510589092696114/image.png?ex=6942a662&is=694154e2&hm=dc9897f2630a0a0f032cdf535ee047513788fac94c925553b2d0b1c323297b15&
c
Thanks for reaching out about your SIP Trunking setup! You can find step-by-step troubleshooting help here: 👉 [Vapi SIP Trunking Guide](https://docs.vapi.ai/advanced/sip/sip-trunk) If that doesn’t resolve it, please reply with: - Your Call ID - The exact error message or behavior (e.g. 401 Unauthorized, timeout, etc.) - Whether it’s happening on inbound, outbound, or both trunks - Any recent configuration changes Once we have that info, we can help pinpoint the issue faster.
v
Here’s the most complete JSON example for creating a SIP trunk credential via API, including advanced fields like
realm
(for SIP registration). Fields like
usePublicIP
or a top-level
domain
are not documented, so they are not included:
Copy code
json
{
  "provider": "byo-sip-trunk",
  "name": "Telnyx Trunk",
  "gateways": [
    {
      "ip": "sip.telnyx.com",
      "inboundEnabled": false
    }
  ],
  "outboundAuthenticationPlan": {
    "authUsername": "YOUR_SIP_USERNAME",
    "authPassword": "YOUR_SIP_PASSWORD",
    "sipRegisterPlan": {
      "realm": "sip.telnyx.com"
    }
  }
}
For more details, see the [official documentation](https://docs.vapi.ai/advanced/sip/sip-trunk). Source: - [SIP Trunking Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
s
Just a single trunk. Thanks @Manja manna for helping me 🙂
Is there API documentation for this? Or just this here https://docs.vapi.ai/advanced/sip/sip-trunk ?
2 Views