Update SIP trunk API
Change a SIP trunk’s settings via PATCH /trunk/trunks/; only the fields you send change, and gateways, carrier IPs and numbers have their own endpoints.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The trunk's id
Body
Send only the fields to change. Gateways, carrier IPs and numbers are managed through their own endpoints.
1 - 100500plivo, telnyx, twilio, exotel, vobiz, vonage, custom false stops all inbound and outbound calls on the trunk.
1 <= x <= 1000Agent for the trunk's numbers that have no agent of their own. null clears it.
Send with auth_password. null on both clears the credentials.
1Send with auth_username. null on both clears the credentials.
1udp, tcp Any non-empty subset of PCMU and PCMA, comma-separated, in order of preference.
"PCMA,PCMU"
Response
The updated trunk
A SIP trunk with its gateways, carrier IPs, numbers and live status.
Unique trunk ID.
"3f2b8c1e-6d4a-4f7b-9e2c-1a5d7b9c0e21"
Display name.
"Telnyx production"
Free-text note for your own reference.
The carrier the trunk was set up for.
plivo, telnyx, twilio, exotel, vobiz, vonage, custom "telnyx"
When false, the trunk takes no inbound calls and places no outbound calls.
Whether the trunk accepts inbound calls from its carrier IPs.
Whether outbound calls can be placed from the trunk's numbers.
Maximum concurrent calls on the trunk, inbound and outbound combined.
20
Agent that answers inbound calls to any of the trunk's numbers that has no agent_id of its own.
Username your carrier issued, sent when the carrier challenges an outbound call (SIP 401/407). The password is never returned.
"bolna-outbound"
SIP transport used towards your carrier's gateways.
udp, tcp Codecs offered to the carrier, comma-separated, in order of preference.
"PCMU,PCMA"
When true, the dialled number is sent to the carrier with a leading + (+12025550178); when false, as digits only (12025550178).
When the trunk last took an inbound call, updated at most once a minute. null until the first one.
When an outbound call was last placed through the trunk, updated at most once a minute. null until the first one.
The legacy SIP trunk this trunk was migrated from, when Bolna migrated it for you. null otherwise.
The organisation that owns the trunk. null for an account outside an organisation.
The sub-account the trunk was created under. null for an organisation-level trunk.
The owning user, for an account outside an organisation. null for an organisation's trunk.
When the trunk was created.
When the trunk's settings last changed.
true only in the response to a delete.
When the trunk was deleted.
ready: calls have crossed the trunk and the carrier is not failing them.waiting_for_carrier: no call has crossed the trunk yet.degraded: the carrier failed three or more recent outbound calls with no answered call since.disabled:is_activeisfalse.
ready, waiting_for_carrier, degraded, disabled Calls holding one of the trunk's channels right now.
0
Carrier SIP hosts outbound calls are sent to.
Carrier IPs inbound calls are accepted from.
The trunk's phone numbers, oldest first.

