Skip to main content
POST
Create Trunk
Create a SIP trunk - your carrier credential. Once created, map numbers to it to receive inbound calls. The response masks auth_password.
Prerequisites: API Token + Org-Handle. See Authentication.

Headers

Request body

cURL
Copy the returned id - you’ll need it to attach numbers, fetch, or delete the trunk.

Authorizations

Authorization
string
header
required

Format: Token

Headers

Org-Handle
string
required

Organization domain handle

Example:

"unpod.tv"

Body

application/json
name
string
required
Example:

"My Carrier Trunk"

sip_url
string
required

Carrier SIP URL / host.

Example:

"sip:carrier.net"

auth_username
string
Example:

"user"

auth_password
string
Example:

"pass"

transport
enum<string>
default:tcp
Available options:
tcp,
udp,
tls
Example:

"tcp"

port
string
default:5060
Example:

"5060"

source_ips
string[]

Carrier source IP allow-list (CIDR allowed).

Example:

Response

Trunk created (auth_password masked in response)