Skip to content

List termination trunks

GET
/v1/Accounts/{auth_id}/Trunks/Termination
curl --request GET \
--url https://api.siprtc.io/v1/Accounts/example/Trunks/Termination \
--header 'Authorization: Basic <credentials>'

Lists your termination (outbound) trunks: your own carriers that outbound calls to the destinations they support are sent through, ahead of the platform’s routes. Trunks are ordered by priority, highest first, and the list is not paged. Each trunk carries its live registration state with the carrier (for trunks with a username and password; otherwise not_required) and whether the carrier’s hosts answer SIP OPTIONS. Passwords are never returned, only has_password.

auth_id
required
string

Your account Auth ID (20 characters). The request always acts on the authenticated account.

OK

Media type application/json
object
trunks

The account’s termination trunks, highest priority first.

Array<object>
object
codecs

Comma-separated codec names offered to the carrier, in order of preference. Empty means the platform default.

string
created

When the trunk was created, RFC 3339.

string
except_cc

ISO 3166-1 alpha-2 country codes this trunk never carries, even when supported_cc is ALL.

Array<string>
from_remove_prefix

Leading characters stripped from the caller ID (after its +) on calls sent to this trunk; “+” sends the bare number.

string
has_password

Whether a password is saved. The password itself is never returned.

boolean
id

Trunk ID, unique across the platform.

integer
name

Display name.

string
primary_ip

Carrier SIP host calls are sent to: IP address or hostname, optionally with :port.

string
priority

0 to 100. When several of the account’s trunks carry a destination, the highest priority is tried first.

integer
reachability

Whether the carrier’s hosts answer SIP OPTIONS.

object
detail

Explanation, when there is one.

string
hosts

Each pinged host.

Array<object>
object
host

The pinged host, as saved on the trunk.

string
latency_ms

Round-trip time of the last OPTIONS answer, in milliseconds.

number
state

Reachable, unreachable or checking (added, no answer or time-out yet).

string
Allowed values: reachable unreachable checking
state

Overall state: reachable, unreachable, checking, not_checked (nothing to ping: an address range, a login-only or an inactive trunk) or unknown (the status could not be read).

string
Allowed values: reachable unreachable checking not_checked unknown
registration

Live state of the trunk’s registration with its carrier.

object
contacts

Origination trunks: number of registered contacts for the login.

integer
detail

Explanation, when there is one.

string
expires_in

Termination trunks: seconds until the registration with the carrier expires.

integer
state

Registered, registering, unregistered, disabled, not_required (the trunk authenticates by IP address, nothing registers) or unknown (the SIP proxy could not be asked; the trunk itself is fine).

string
Allowed values: registered registering unregistered disabled not_required unknown
remove_prefix

Leading digits stripped from the dialled number before trunk_prefix is added.

string
secondary_ip

Fallback carrier SIP host, used when the primary does not answer. Empty when not set.

string
supported_cc

ISO 3166-1 alpha-2 country codes of destinations this trunk carries, or [“ALL”].

Array<string>
trunk_prefix

Digits prepended to the dialled number before it is sent to the carrier (digits, +, *, #).

string
updated

When the trunk was last changed, RFC 3339.

string
username

Digest username for the carrier. Empty for a trunk the carrier authenticates by IP address.

string

Example

{
"trunks": [
{
"codecs": "PCMU,PCMA",
"created": "2026-11-20T09:30:00Z",
"except_cc": [
"CU"
],
"from_remove_prefix": "+",
"has_password": true,
"id": 42,
"name": "Acme Carrier EU",
"primary_ip": "203.0.113.10:5060",
"priority": 10,
"reachability": {
"detail": "address ranges cannot be pinged",
"hosts": [
{
"host": "203.0.113.10:5060",
"latency_ms": 23.4,
"state": "reachable"
}
],
"state": "reachable"
},
"registration": {
"contacts": 1,
"detail": "the carrier has not accepted the registration; check the username and password. It is retried every few minutes",
"expires_in": 3540,
"state": "registered"
},
"remove_prefix": "00",
"secondary_ip": "203.0.113.11",
"supported_cc": [
"GB",
"IE"
],
"trunk_prefix": "9",
"updated": "2026-11-21T14:05:00Z",
"username": "acme-trunk-01"
}
]
}

The account ID is too short to be valid

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}

Missing or wrong Auth ID / Auth Secret (answered by the API gateway)

Media type application/json
string

Example generated

example

The trunks could not be read

Media type application/json
object
message

What went wrong, in plain words.

string
status

Always “failed”.

string

Example

{
"message": "trunk not found",
"status": "failed"
}