Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

trunk_id
string<uuid>
required

The trunk's id

Body

application/json
host
string
required

The carrier's SIP host, as an IPv4 address or a DNS name. A literal address must be public.

Example:

"sip.example.com"

port
integer
default:5060

The carrier's SIP port.

Required range: 1 <= x <= 65535
priority
integer
default:0

Order in which gateways are tried; lowest first.

Required range: 0 <= x <= 100

Response

The added gateway

id
string<uuid>
trunk_id
string<uuid>
host
string
Example:

"sip.example.com"

resolved_ips
string[] | null

The public IPv4 addresses host resolved to when it was saved.

Example:
port
integer
Example:

5060

priority
integer
Example:

1

created_at
string<date-time>
updated_at
string<date-time>
is_deleted
boolean
deleted_at
string<date-time> | null