List SIP domains
const url = 'https://api.siprtc.io/v1/Accounts/example/Sips/Domains?associate=Linked&page=1&limit=30';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/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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of your account.
Query Parameters
Section titled “ Query Parameters ”Return domains whose display name starts with this text.
Return domains whose full domain name starts with this text.
Linked: only domains with an application; NotLinked: only domains without one.
Vendor accounts only: list the domains of this direct child account.
Page number, starting at 1.
Page size.
Responses
Section titled “ Responses ”One page of SIP domains.
object
The page of SIP domains.
object
The request URL the page links are built from.
Page number that was returned (1-based).
SIP domains on this page, newest first.
object
Auth ID of the account that owns the domain.
Application that handles calls arriving at the domain; -1 when none.
Name of the attached application, or “-” when none. Only filled in lists.
When the domain was created (RFC 3339).
Full domain name, <domain_prefix>.
Host label the domain was created with. Only present in the create response.
Numeric ID of the SIP domain (domain_id).
Allowed source addresses: a JSON array of addresses and CIDR prefixes, or {“whitelisted_ips”: […]}. An empty list allows any source.
object
Display name.
Auth ID of the owner’s parent (vendor) account.
Whether the domain accepts calls.
When the domain was last changed (RFC 3339).
User authentication settings, for example {“enabled”: false}.
object
Number of the last page.
Link to the next page; omitted on the last page.
Page size that was applied.
Link to the previous page; omitted on the first page.
Total number of matching records across all pages.
Always “success”.
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”}).
object
Short description of what happened, for example “endpoint updated”, “endpoint deleted”, “sip domain updated” or “domain deleted”.
Example
{ "status": "endpoint updated"}Missing or wrong Basic-auth credentials (returned by the API gateway).
Example generated
exampleTenant_id is neither your account nor a direct child of it.
object
Human-readable explanation of the failure.
Example
{ "message": "Parent auth ID does not match"}The tenant check could not be completed.
object
Human-readable explanation of the failure.
Example
{ "message": "Parent auth ID does not match"}