Skip to content
TriedDocs
Phone numbers

List SIP trunks

List the workspace SIP trunks with the numbers attached to each.

GEThttps://api.tried.com.au/list-sip-trunks

Returns every SIP trunk in your workspace, newest first, with the numbers attached to each.

Request#

This endpoint takes no path, query or body parameters.

Example request#

curl https://api.tried.com.au/list-sip-trunks \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/list-sip-trunks", {
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const trunks = await res.json();
import os, requests

res = requests.get(
    "https://api.tried.com.au/list-sip-trunks",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
trunks = res.json()

Response#

200 OK

A JSON array of trunk objects. See Create SIP trunk for the fields.

[
  {
    "sip_trunk_id": "sip_trunk_5c1e8a92d4f70b36a1e9c4d2",
    "name": "Melbourne PBX",
    "termination_uri": "pbx.example.com:5061",
    "sip_trunk_auth_username": "tried",
    "transport": "TLS",
    "media_encryption": "allowed",
    "allowed_inbound_addresses": ["203.0.113.10/32"],
    "inbound_auth_username": null,
    "phone_numbers": ["+61390001234", "+61390005678"],
    "livekit_inbound_trunk_id": "ST_8fNc2kRw6HpA",
    "livekit_outbound_trunk_id": "ST_1dVs7qMe3LtG",
    "livekit_dispatch_rule_id": "SDR_5bXh9jTy4WnE",
    "last_modification_timestamp": 1792400400000
  }
]

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the numbers scope.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.