Skip to content

Get a termination URI

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

Returns one termination URI of a trunk, with its credential lists and IP access control lists resolved to ID and name.

auth_id
required
string

Auth ID of your account.

trunk_id
required
string

ID of the trunk.

termination_uri_id
required
string

ID of the termination URI.

The termination URI.

Media type application/json
object
result

The termination URI.

object
authecredentiallist_id

The credential lists, resolved to ID and name. Filled by GET only.

Array<object>
object
friendly_name

Credential list name.

string
id

Credential list ID.

string
authecredentiallist_ids

JSON-encoded array of credential list IDs, as stored.

string
created_at

When the record was created (RFC 3339).

string
created_by

Auth ID of the account that created the record.

string
id

Termination URI ID (UUID).

string
ipaccesscontrollist_id

The IP access control lists, resolved to ID and name. Filled by GET only.

Array<object>
object
ip_acl_id

IP access control list ID.

string
ip_acl_name

IP access control list name.

string
ipaccesscontrollist_ids

JSON-encoded array of IP access control list IDs, as stored.

string
modified_by

Auth ID of the account that last changed the record.

string
sip_domain

SIP domain the PBX sends outbound calls to.

string
status

Status of the URI.

string
Allowed values: active inactive
trunk_id

Trunk the URI belongs to.

string
updated_at

When the record was last changed (RFC 3339).

string
status

Always “success”.

string

Example

{
"result": {
"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"
},
"status": "success"
}

Missing or wrong Basic-auth credentials (returned by the API gateway).

Media type application/json
string

Example generated

example

No live termination URI with this ID (code 20404).

Media type application/json
object
code

SIPRTC error code, for example 21213 (invalid field) or 20404 (not found).

integer
message

Human-readable description of the error.

string
more_info

Link to more information.

string
status

HTTP status the error is meant to map to. It can differ from the actual response status.

integer

Example

{
"code": 21213,
"message": "validation failed on field Password is not valid",
"more_info": "https://api.siprtc.io",
"status": 400
}