Skip to main content
POST
/
phone
/
sip
/
outbound-trunks
Create an outbound SIP trunk
curl --request POST \
  --url https://api.open.cx/phone/sip/outbound-trunks \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "host": "<string>",
  "username": "<string>",
  "password": "<string>",
  "caller_number": "<string>",
  "port": 32768,
  "transport": "udp"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Body

application/json
name
string
required

Friendly name for the trunk

Minimum string length: 1
host
string
required

SIP provider host address

Minimum string length: 1
username
string
required

SIP authentication username

Minimum string length: 1
password
string
required

SIP authentication password

Minimum string length: 1
caller_number
string
required

Caller ID phone number in E.164 format

Minimum string length: 1
port
integer

SIP port (default: 5060)

Required range: 1 <= x <= 65535
transport
enum<string>

Transport protocol (default: udp)

Available options:
udp,
tcp,
tls

Response

Default Response

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
name
string
required

Friendly name

created_at
string
required

Creation timestamp

updated_at
string
required

Last update timestamp