Skip to content

Delete a SIP domain

DELETE
/v1/Accounts/{auth_id}/Sips/Domains/{domain_id}
curl --request DELETE \
--url https://api.siprtc.io/v1/Accounts/example/Sips/Domains/1 \
--header 'Authorization: Basic <credentials>'

Deletes one of your SIP domains; calls sent to it are refused afterwards. Deleting an ID that does not exist on your account also answers 200.

auth_id
required
string

Auth ID of your account.

domain_id
required
integer

ID of the SIP domain.

Deleted ({“status”: “domain deleted”}).

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

Domain_id is not a positive number (body “Invalid Request”).

Media type application/json
string

Example generated

example

The delete failed.

Media type application/json
object
errors

The error detail.

object
body

Error text as reported by the data store, for example “record not found”.

string

Example

{
"errors": {
"body": "record not found"
}
}