End point for SIP Trunk Credentials under Integrat...
# support
h
HI team @Vapi @Vapi Support Bot what is the end point for below JSON. this end point is not workining - https://api.vapi.ai/credential
Copy code
{
  "provider": "byo-sip-trunk",
  "name": "Your SIP Trunk Name",
  "gateways": [
    {
      "ip": "your.sip.gateway.ip",
      "port": 5060,
      "netmask": 32,
      "inboundEnabled": true,
      "outboundEnabled": true,
      "outboundProtocol": "udp",
      "optionsPingEnabled": true
    }
  ],
  "outboundAuthenticationPlan": {
    "authPassword": "your_password",
    "authUsername": "your_username",
    "sipRegisterPlan": {
      "domain": "your_domain",
      "username": "your_username",
      "realm": "your_realm"
    }
  },
  "outboundLeadingPlusEnabled": true,
  "techPrefix": "optional_prefix",
  "sipDiversionHeader": "optional_diversion_header",
  "sbcConfiguration": {}
}
p
I can help you with any difficulty, let's have a chat now and proceed to your project
k
Use POST https://api.vapi.ai/credential not plural with a valid Bearer token and JSON body to create credentials and get a credentialId for later API calls..
h
gettign this error "{ "message": [ "property name should not exist", "property gateways should not exist", "property outboundAuthenticationPlan should not exist", "property outboundLeadingPlusEnabled should not exist", "property techPrefix should not exist", "property sipDiversionHeader should not exist", "property sbcConfiguration should not exist", "provider must be one of the following values: 11labs, anthropic, anyscale, azure-openai, byo-sip-trunk, cartesia, cerebras, custom-llm, deep-seek, deepgram, gcp, gladia, deepinfra, gohighlevel, groq, langfuse, lmnt, make, minimax, openai, openrouter, perplexity-ai, playht, rime-ai, cloudflare, runpod, tavus, together-ai, trieve, twilio, google, xai, inflection-ai, vonage, telnyx, s3, supabase, smallest-ai, neuphonic, google.calendar.oauth2-client, google.calendar.oauth2-authorization, google.sheets.oauth2-authorization, slack.oauth2-authorization, ghl.oauth2-authorization, inworld" ], "error": "Bad Request", "statusCode": 400 }"
k
The error means byo-sip-trunk only allows a specific minimal payload, so fields like name or gateways aren’t valid..
3 Views