Skip to main content
PATCH
Update a SIP Trunk
Omitted fields are left unchanged.

Default route

inbound.default_route sets, replaces or clears the agent that receives calls to numbers with no extension on the trunk. See Default route for how it interacts with extensions.
Provide exactly one of agent or disable: true; anything else returns 400. Omitting default_route leaves it unchanged. Changes can take up to a minute to affect calls.

Authorizations

X-API-Key
string
header
required

Path Parameters

account_id
string
required

ID of the account that owns the SIP Trunk.

trunk_id
string
required

The SIP Trunk ID.

Body

application/json

Send only the fields you want to change; anything omitted is left unchanged. The owning account is immutable and cannot be changed.

sip_cidr
string[]

The IPv4 CIDR blocks of your SIP servers. Omit to leave unchanged.

Required array length: 1 - 10 elements
Maximum string length: 43
rtp_cidr
string[]

The IPv4 CIDR blocks of your RTP / media servers. Omit to leave unchanged.

Required array length: 1 - 10 elements
Maximum string length: 43
name
string

A friendly name to help identify your SIP Trunk. Omit to leave unchanged.

Required string length: 1 - 255
Pattern: \S
encrypted
boolean

Whether this SIP Trunk will handle encrypted (true; SIP over TCP/TLS, media over UDP/SRTP) or unencrypted (false; SIP over UDP, media over UDP/RTP) calls.

inbound
object

Configuration for inbound calls. sip_auth and sip_token_auth are mutually exclusive.

outbound
object

Configuration for outbound calls leaving PolyAI.

Response

The updated SIP Trunk.

A SIP Trunk.

id
string
required

PolyAI-generated SIP Trunk ID, e.g. tr-0123456789abcdefghijklmn.

account_id
string
required

The PolyAI account that owns the SIP Trunk.

sip_cidr
string[]
required

The IPv4 CIDR blocks of your SIP servers.

rtp_cidr
string[]
required

The IPv4 CIDR blocks of your RTP / media servers.

name
string
required

A friendly name to help identify your SIP Trunk.

encrypted
boolean
required

Whether this SIP Trunk will handle encrypted (true; SIP over TCP/TLS, media over UDP/SRTP) or unencrypted (false; SIP over UDP, media over UDP/RTP) calls.

inbound
object
required

Configuration for inbound calls.

created_at
string<date-time>
required

RFC 3339 timestamp of when the SIP Trunk was created.

updated_at
string<date-time>
required

RFC 3339 timestamp of when the SIP Trunk was last updated.

outbound
object

Configuration for outbound calls leaving PolyAI.

Last modified on September 25, 2026