Get a SIP trunk
const url = 'https://api.siprtc.io/v1/Accounts/example/SipTrunks/example';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/SipTrunks/example \ --header 'Authorization: Basic <credentials>'Returns one of your SIP trunks with its termination SIP domain and origination URIs. Note the plural SipTrunks in the path: GET /SipTrunk/{value} is a different, internal lookup.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of your account.
ID of the trunk.
Responses
Section titled “ Responses ”The trunk.
object
Auth ID of the account that owns the trunk.
When the record was created (RFC 3339).
Auth ID of the account that created the record.
Trunk ID (UUID).
Whether calls over the trunk are recorded.
Auth ID of the account that last changed the record.
Trunk name.
Concurrent inbound calls allowed.
Inbound calls per second allowed.
The trunk’s origination URIs.
object
Priority as a decimal string; lower is tried first.
Whether the URI is enabled.
SIP URI inbound calls are sent to.
Trunk status.
Concurrent outbound calls allowed.
Outbound calls per second allowed.
SIP domain of the trunk’s termination URI; empty when it has none.
When the record was last changed (RFC 3339).
Example
{ "auth_id": "AC000000000000000000", "created_at": "2026-01-15T10:30:00Z", "created_by": "AC000000000000000000", "id": "3d6f0a52-8c1e-4b7a-9f2d-1a2b3c4d5e01", "is_recording": false, "modified_by": "AC000000000000000000", "name": "Main PBX trunk", "origination_channel_limit": 1, "origination_cps": 1, "origination_uris": [ { "priority": "10", "status": true, "uri": "sip:pbx.example.com:5060" } ], "status": "active", "termination_channel_limit": 1, "termination_cps": 1, "termination_uris": "acme-trunk.pstn.siprtc.io", "updated_at": "2026-01-16T08:00:00Z"}Missing or wrong Basic-auth credentials (returned by the API gateway).
Example generated
exampleNo trunk with this ID, or it is deleted (message “Trunk not found”).
object
Human-readable explanation of the outcome.
Outcome of the request: “success” or “failed”.
Example
{ "message": "Invalid auth ID", "status": "success"}