Skip to content

Undo a phone number release

POST
/v1/Accounts/{auth_id}/RevokePhoneNumbers/{phone_number}
curl --request POST \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/RevokePhoneNumbers/%2B15555550100 \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "customerid": "AC000000000000000001", "modified_by": "jane@example.com" }'

Restores a released number (subscription in cancellation_request) to an active subscription on your account, or with customerid on a direct child account, as long as the subscription end date has not passed. The number is assigned to that account again; its application link is not restored, so link one again if needed. The body is optional.

auth_id
required
string

Your Auth ID.

Example

AC000000000000000000
phone_number
required
string

The released number, with or without +.

Example

+15555550100

Optional child account and audit name

Media type application/json
object
customerid

Auth ID of a direct child account to restore the number for. Omit to restore it for yourself.

string

Example

AC000000000000000001
modified_by

Optional name of the person making the change, recorded in the audit log.

string

Example

jane@example.com

The restored subscription

Media type application/json
object
acc_id

Auth ID of the account the number is assigned to.

string
application_id

ID of the linked application; -1 when none.

integer
application_metadata

Inbound routing entries, as a JSON-encoded string.

string
application_name

Name of the linked application.

string
application_type

Product label such as ContactCenter or FrontDesk.

string
direction

Call directions of the number, when included.

string
end_date

End of the subscription (RFC 3339).

string
is_default

Whether this is the account’s default outbound number.

boolean
metadata

Snapshot of the number record, as a JSON-encoded string.

string
modified_by

Name of the person who made the change, when supplied.

string
notes

Free-form notes, e.g. “revoke” after a release was undone.

string
number_id
required

Internal ID of the number.

integer
purchased_date

When the number was assigned (RFC 3339).

string
released_date

When the number was released (RFC 3339); null while active.

string
route_list

ID of the SIP route list attached to the number, if any.

string
route_tag

ID of the SIP route tag attached to the number, if any.

string
source

Where the subscription came from, for imported numbers.

string
source_id

Reference of the import the subscription came from.

string
start_date

Start of the subscription (RFC 3339).

string
status

Active, or cancellation_request after a release.

string
subscription_fees

Monthly fee recorded for the subscription, in USD (the number’s MRC).

number

Example

{
"acc_id": "AC000000000000000001",
"application_id": 1024,
"application_metadata": "[]",
"application_name": "Support line",
"application_type": "ContactCenter",
"direction": "inbound,outbound",
"end_date": "2126-11-20T10:15:00Z",
"is_default": false,
"metadata": "{\"phone_number\":\"+15555550100\",\"capability\":\"voice,sms\"}",
"modified_by": "jane@example.com",
"notes": "revoke",
"number_id": 5012,
"purchased_date": "2026-11-20T10:15:00Z",
"released_date": "2026-11-25T08:00:00Z",
"route_list": "12",
"route_tag": "3",
"source": "",
"source_id": "",
"start_date": "2026-11-20T10:15:00Z",
"status": "active",
"subscription_fees": 1.5
}

Body not valid JSON

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

Missing or invalid credentials (returned by the API gateway)

Media type application/json
string

Example generated

example

Customerid is not your account or a direct child

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

No released subscription for the number, the subscription has ended, or the account could not be looked up

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

The account named in customerid could not be looked up

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}