List a trunk's termination URIs
const url = 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/example/TerminationUri?status=active&page=1&limit=30';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/example/TerminationUri?status=active&page=1&limit=30' \ --header 'Authorization: Basic <credentials>'Returns the termination URIs of a trunk (the SIP domains your PBX sends outbound calls to), newest first, 30 per page by default. Each URI lists its credential lists and IP access control lists by ID and name. sipdomain matches any part of the SIP domain.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of your account.
ID of the trunk.
Query Parameters
Section titled “ Query Parameters ”Return URIs whose SIP domain contains this text.
Return only this status. Default (or any / all): active and inactive.
Page number, starting at 1.
Page size; values above 100 fall back to 30.
Responses
Section titled “ Responses ”One page of termination URIs.
object
The request URL the page links are built from.
Page number that was returned (1-based).
Number of the last page.
Link to the next page; omitted on the last page.
Page size that was applied.
Link to the previous page; omitted on the first page.
Termination URIs on this page, newest first.
object
The credential lists, resolved to ID and name.
object
Credential list name.
Credential list ID.
JSON-encoded array of credential list IDs, as stored.
When the record was created (RFC 3339).
Auth ID of the account that created the record.
Termination URI ID (UUID).
The IP access control lists, resolved to ID and name.
object
IP access control list ID.
IP access control list name.
JSON-encoded array of IP access control list IDs, as stored.
Auth ID of the account that last changed the record.
SIP domain the PBX sends outbound calls to.
Status of the URI.
Trunk the URI belongs to.
When the record was last changed (RFC 3339).
Total number of matching records across all pages.
Example
{ "base_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/SipTrunk?page=1", "current_page": 1, "last_page": 1, "next_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/SipTrunk?page=2", "per_page": 30, "prev_url": "", "termination": [ { "authecredentiallist_id": [ { "friendly_name": "PBX credentials", "id": "6f1c2b9e-0d4a-4c8e-9b7a-2f5d3e1a0b01" } ], "authecredentiallist_ids": "[\"6f1c2b9e-0d4a-4c8e-9b7a-2f5d3e1a0b01\"]", "created_at": "2026-01-15T10:30:00Z", "created_by": "AC000000000000000000", "id": "4c3b2a19-0f8e-4d7c-9b6a-5e4d3c2b1a01", "ipaccesscontrollist_id": [ { "ip_acl_id": "0b8e7f4a-3c2d-4e1f-8a9b-7c6d5e4f3a01", "ip_acl_name": "Office IPs" } ], "ipaccesscontrollist_ids": "[\"0b8e7f4a-3c2d-4e1f-8a9b-7c6d5e4f3a01\"]", "modified_by": "AC000000000000000000", "sip_domain": "acme-trunk.pstn.siprtc.io", "status": "active", "trunk_id": "3d6f0a52-8c1e-4b7a-9f2d-1a2b3c4d5e01", "updated_at": "2026-01-16T08:00:00Z" } ], "total_results": 2}Missing or wrong Basic-auth credentials (returned by the API gateway).
Example generated
exampleThe URIs could not be read.
object
Human-readable explanation of the outcome.
Outcome of the request: “success” or “failed”.
Example
{ "message": "Invalid auth ID", "status": "success"}