Skip to main content
POST
/
sip-trunks
Create SIP Trunk
curl --request POST \
  --url https://api.revring.ai/v1/sip-trunks \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "proxy": "<string>",
  "cloud": {
    "numbers": [
      "<string>"
    ]
  },
  "friendlyName": "<string>",
  "username": "<string>",
  "password": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "gatewayName": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "friendlyName": "<string>",
    "username": "<string>",
    "proxy": "<string>",
    "cloud": {
      "numbers": [
        "<string>"
      ]
    }
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Body

application/json

Create a new SIP Trunk. Provide the proxy address and phone numbers.

proxy
string
required

SIP proxy server address (required)

cloud
object
required

Phone numbers to associate with this trunk

friendlyName
string

Human-readable name for this trunk

Maximum string length: 128
username
string

SIP authentication username (optional)

password
string

SIP authentication password (not returned in responses)

Response

SIP trunk created

data
object

SIP Trunk for routing phone calls