Skip to content

Create a SIP domain

POST
/v1/Accounts/{auth_id}/Sips/Domains
curl --request POST \
--url https://api.siprtc.io/v1/Accounts/example/Sips/Domains \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "acc_id": "AC000000000000000000", "application_id": 1024, "domain_prefix": "acme", "ip_auth": {}, "name": "Head office PBX", "status": true, "user_auth": {} }'

Creates the SIP domain <domain_prefix>., on which SIPRTC accepts calls from your PBX or SIP trunk; the suffix is your vendor’s SIP domain suffix, sip.siprtc.io by default. ip_auth and user_auth are required, and calls are accepted only from source addresses listed in ip_auth (an empty list allows any source). The domain name must not exist yet. acc_id may name a direct child account to create the domain for it, and application_id attaches an application that handles calls arriving at the domain. The domain is active unless status is false.

auth_id
required
string

Auth ID of your account.

The SIP domain to create.

Media type application/json
object
acc_id

Account that will own the domain: your own Auth ID or the Auth ID of a direct child account. Defaults to your account.

string

Example

AC000000000000000000
application_id

Application that handles calls arriving at the domain. Leave out or 0 for none.

integer

Example

1024
domain_prefix

Host label of the domain. The full domain becomes <domain_prefix>., for example acme.sip.siprtc.io.

string

Example

acme
ip_auth

Source addresses allowed to send calls to the domain: a JSON array of IPv4/IPv6 addresses and CIDR prefixes, or an object {“whitelisted_ips”: […]}. An empty list allows any source.

object
name

Display name of the domain.

string

Example

Head office PBX
status

Whether the domain accepts calls. Defaults to true.

boolean

Example

true
user_auth

User authentication settings stored with the domain, for example {“enabled”: false}.

object

The new SIP domain.

Media type application/json
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

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

The body could not be read (20404), ip_auth is missing (20421), user_auth is missing (20241) or the domain already exists (20241).

Media type application/json
object
code

SIPRTC error code, for example 21213 (invalid field) or 20404 (not found).

integer
message

Human-readable description of the error.

string
more_info

Link to more information.

string
status

HTTP status the error is meant to map to. It can differ from the actual response status.

integer

Example

{
"code": 21213,
"message": "validation failed on field Password is not valid",
"more_info": "https://api.siprtc.io",
"status": 400
}

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

Media type application/json
string

Example generated

example

Acc_id is not your account or a direct child of it, or the application does not belong to the owning 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 domain could not be created, for example because domain_prefix is empty (code 20404).

Media type application/json
object
code

SIPRTC error code, for example 21213 (invalid field) or 20404 (not found).

integer
message

Human-readable description of the error.

string
more_info

Link to more information.

string
status

HTTP status the error is meant to map to. It can differ from the actual response status.

integer

Example

{
"code": 21213,
"message": "validation failed on field Password is not valid",
"more_info": "https://api.siprtc.io",
"status": 400
}

The account or application check could not be completed.

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