Skip to content

Get a SIP trunk

GET
/v1/Accounts/{auth_id}/SipTrunks/{trunk_id}
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.

auth_id
required
string

Auth ID of your account.

trunk_id
required
string

ID of the trunk.

The trunk.

Media type application/json
object
auth_id

Auth ID of the account that owns the trunk.

string
created_at

When the record was created (RFC 3339).

string
created_by

Auth ID of the account that created the record.

string
id

Trunk ID (UUID).

string
is_recording

Whether calls over the trunk are recorded.

boolean
modified_by

Auth ID of the account that last changed the record.

string
name

Trunk name.

string
origination_channel_limit

Concurrent inbound calls allowed.

integer
origination_cps

Inbound calls per second allowed.

integer
origination_uris

The trunk’s origination URIs.

Array<object>
object
priority

Priority as a decimal string; lower is tried first.

string
status

Whether the URI is enabled.

boolean
uri

SIP URI inbound calls are sent to.

string
status

Trunk status.

string
Allowed values: active inactive
termination_channel_limit

Concurrent outbound calls allowed.

integer
termination_cps

Outbound calls per second allowed.

integer
termination_uris

SIP domain of the trunk’s termination URI; empty when it has none.

string
updated_at

When the record was last changed (RFC 3339).

string

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).

Media type application/json
string

Example generated

example

No trunk with this ID, or it is deleted (message “Trunk not found”).

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}