Get a SIP domain
const url = 'https://api.siprtc.io/v1/Accounts/example/Sips/Domains/1';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/1 \ --header 'Authorization: Basic <credentials>'Returns one SIP domain of your account. A successful lookup answers with HTTP 202 rather than 200.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of your account.
ID of the SIP domain.
Responses
Section titled “ Responses ”The SIP domain.
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
Example
{ "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"}Missing or wrong Basic-auth credentials (returned by the API gateway).
Example generated
exampleDomain_id is not a positive number (body “Invalid Request”).
Example generated
exampleNo domain with this ID on your account (errors.body “record not found”).
object
The error detail.
object
Error text as reported by the data store, for example “record not found”.
Example
{ "errors": { "body": "record not found" }}