Skip to content

List SIP trunks

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

Returns your SIP trunks (bring-your-own-carrier trunks), newest first, 30 per page by default; deleted trunks are never listed. name matches any part of the trunk name. A vendor account can pass customer_id to list a direct child account’s trunks instead of its own. The trunks’ termination and origination URIs are not included; use GET /SipTrunk/WithUris for those.

auth_id
required
string

Auth ID of your account.

name
string

Return trunks whose name contains this text.

status
string
Allowed values: active inactive any all

Return only this status. Default (or any / all): active and inactive.

customer_id
string

Vendor accounts only: list the trunks of this direct child account.

page
integer
default: 1

Page number, starting at 1.

limit
integer
default: 30

Page size.

One page of trunks.

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
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
trunks

Trunks on this page, newest first.

Array<object>
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
customer_info

Owner details; filled only when a vendor lists its child accounts’ trunks.

object
auth_id

Auth ID of the owning child account.

string
email

Email address on the owning account.

string
firstName

First name on the owning account.

string
lastName

Last name on the owning account.

string
id

Trunk ID (UUID).

string
is_recording

Whether calls over the trunk are recorded.

boolean
metadata

Reserved JSON metadata; currently always “{}”.

string
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. Only filled by GET /SipTrunk/WithUris.

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. Only filled by GET /SipTrunk/WithUris.

string
trunk_configuration

Reserved JSON configuration; currently always “{}”.

string
updated_at

When the record was last changed (RFC 3339).

string

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",
"per_page": 30,
"prev_url": "",
"total_results": 2,
"trunks": [
{
"auth_id": "AC000000000000000000",
"created_at": "2026-01-15T10:30:00Z",
"created_by": "AC000000000000000000",
"customer_info": {
"auth_id": "AC000000000000000001",
"email": "jane.doe@example.com",
"firstName": "Jane",
"lastName": "Doe"
},
"id": "3d6f0a52-8c1e-4b7a-9f2d-1a2b3c4d5e01",
"is_recording": false,
"metadata": "{}",
"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",
"trunk_configuration": "{}",
"updated_at": "2026-01-16T08:00:00Z"
}
]
}

The gateway did not supply your company (message “company id is empty”).

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

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

Media type application/json
string

Example generated

example

Customer_id is not a direct child of your account.

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

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