Get an origination URI
const url = 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/example/OriginationUri/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/SipTrunk/example/OriginationUri/example \ --header 'Authorization: Basic <credentials>'Returns one origination URI of a trunk.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of your account.
ID of the trunk.
ID of the origination URI.
Responses
Section titled “ Responses ”The origination URI.
object
The origination URI.
object
When the record was created (RFC 3339).
Auth ID of the account that created the record.
Origination URI ID (UUID).
Free-form text stored with the URI.
Auth ID of the account that last changed the record.
Priority as a decimal string; lower is tried first.
SIP URI inbound calls are sent to.
Whether the URI is enabled.
Trunk the URI belongs to.
When the record was last changed (RFC 3339).
Always “success”.
Example
{ "result": { "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" }, "status": "success"}Missing or wrong Basic-auth credentials (returned by the API gateway).
Example generated
exampleNo live origination URI with this ID (code 20404).
object
SIPRTC error code, for example 21213 (invalid field) or 20404 (not found).
Human-readable description of the error.
Link to more information.
HTTP status the error is meant to map to. It can differ from the actual response status.
Example
{ "code": 21213, "message": "validation failed on field Password is not valid", "more_info": "https://api.siprtc.io", "status": 400}