Skip to content

List SIP domains

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

Returns the SIP domains of your account (domains that your PBX or SIP trunk sends calls to), newest first, 30 per page by default. name matches the start of the display name and domainPrefix the start of the full domain name; both apply when both are given. associate=Linked returns only domains with an application attached and NotLinked only those without. A vendor account can pass tenant_id to list a direct child account’s domains.

auth_id
required
string

Auth ID of your account.

name
string

Return domains whose display name starts with this text.

domainPrefix
string

Return domains whose full domain name starts with this text.

associate
string
Allowed values: Linked NotLinked

Linked: only domains with an application; NotLinked: only domains without one.

tenant_id
string

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

page
integer
default: 1

Page number, starting at 1.

limit
integer
default: 30

Page size.

One page of SIP domains.

Media type application/json
object
results

The page of SIP domains.

object
base_url

The request URL the page links are built from.

string
current_page

Page number that was returned (1-based).

integer
domains

SIP domains on this page, newest first.

Array<object>
object
acc_id

Auth ID of the account that owns the domain.

string
application_id

Application that handles calls arriving at the domain; -1 when none.

integer
application_name

Name of the attached application, or “-” when none. Only filled in lists.

string
created_time

When the domain was created (RFC 3339).

string
domain_name

Full domain name, <domain_prefix>..

string
domain_prefix

Host label the domain was created with. Only present in the create response.

string
id

Numeric ID of the SIP domain (domain_id).

integer
ip_auth

Allowed source addresses: a JSON array of addresses and CIDR prefixes, or {“whitelisted_ips”: […]}. An empty list allows any source.

object
name

Display name.

string
parent_act_id

Auth ID of the owner’s parent (vendor) account.

string
status

Whether the domain accepts calls.

boolean
updated_time

When the domain was last changed (RFC 3339).

string
user_auth

User authentication settings, for example {“enabled”: false}.

object
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
status

Always “success”.

string

Example

{
"results": {
"base_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/SipTrunk?page=1",
"current_page": 1,
"domains": [
{
"acc_id": "AC000000000000000000",
"application_id": 1024,
"application_name": "IVR main",
"created_time": "2026-01-15T10:30:00Z",
"domain_name": "acme.sip.siprtc.io",
"domain_prefix": "acme",
"id": 301,
"name": "Head office PBX",
"parent_act_id": "AC000000000000000009",
"status": true,
"updated_time": "2026-01-16T08:00:00Z"
}
],
"last_page": 1,
"next_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/SipTrunk?page=2",
"per_page": 30,
"prev_url": "",
"total_results": 2
},
"status": "success"
}

The query string could not be read ({“status”: “failed”}).

Media type application/json
object
status

Short description of what happened, for example “endpoint updated”, “endpoint deleted”, “sip domain updated” or “domain deleted”.

string

Example

{
"status": "endpoint updated"
}

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

Media type application/json
string

Example generated

example

Tenant_id is neither your account nor a direct child of it.

Media type application/json
object
message

Human-readable explanation of the failure.

string

Example

{
"message": "Parent auth ID does not match"
}

The tenant check could not be completed.

Media type application/json
object
message

Human-readable explanation of the failure.

string

Example

{
"message": "Parent auth ID does not match"
}