Skip to content

List a trunk's origination URIs

GET
/v1/Accounts/{auth_id}/SipTrunk/{trunk_id}/OriginationUri
curl --request GET \
--url 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/example/OriginationUri?status=true&page=1&limit=30' \
--header 'Authorization: Basic <credentials>'

Returns the origination URIs of a trunk (where SIPRTC sends inbound calls for the trunk’s phone numbers), newest first, 30 per page by default. sipuri and priority match any part of the stored value; status is true or false (default both).

auth_id
required
string

Auth ID of your account.

trunk_id
required
string

ID of the trunk.

sipuri
string

Return URIs whose SIP URI contains this text.

priority
string

Return URIs whose priority contains this text.

status
string
Allowed values: true false

Return only enabled (true) or disabled (false) URIs. Default: both.

page
integer
default: 1

Page number, starting at 1.

limit
integer
default: 30

Page size; values above 100 fall back to 30.

One page of origination URIs.

Media type application/json
object
base_url

The request URL the page links are built from.

string
current_page

Page number that was returned (1-based).

integer
last_page

Number of the last page.

integer
next_url

Link to the next page; omitted on the last page.

string
originationUris

Origination URIs on this page, newest first.

Array<object>
object
created_at

When the record was created (RFC 3339).

string
created_by

Auth ID of the account that created the record.

string
id

Origination URI ID (UUID).

string
meta_data

Free-form text stored with the URI.

string
modified_by

Auth ID of the account that last changed the record.

string
priority

Priority as a decimal string; lower is tried first.

string
sip_uri

SIP URI inbound calls are sent to.

string
status

Whether the URI is enabled.

boolean
trunk_id

Trunk the URI belongs to.

string
updated_at

When the record was last changed (RFC 3339).

string
per_page

Page size that was applied.

integer
prev_url

Link to the previous page; omitted on the first page.

string
total_results

Total number of matching records across all pages.

integer

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",
"originationUris": [
{
"created_at": "2026-01-15T10:30:00Z",
"created_by": "AC000000000000000000",
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c01",
"meta_data": "primary site",
"modified_by": "AC000000000000000000",
"priority": "10",
"sip_uri": "sip:pbx.example.com:5060",
"status": true,
"trunk_id": "3d6f0a52-8c1e-4b7a-9f2d-1a2b3c4d5e01",
"updated_at": "2026-01-16T08:00:00Z"
}
],
"per_page": 30,
"prev_url": "",
"total_results": 2
}

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

Media type application/json
string

Example generated

example

The URIs could not be read.

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"
}