Undo a phone number release
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/RevokePhoneNumbers/%2B15555550100';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"customerid":"AC000000000000000001","modified_by":"jane@example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your Auth ID.
Example
AC000000000000000000The released number, with or without +.
Example
+15555550100Request Body
Section titled “ Request Body ”Optional child account and audit name
object
Auth ID of a direct child account to restore the number for. Omit to restore it for yourself.
Example
AC000000000000000001Optional name of the person making the change, recorded in the audit log.
Example
jane@example.comResponses
Section titled “ Responses ”The restored subscription
object
Auth ID of the account the number is assigned to.
ID of the linked application; -1 when none.
Inbound routing entries, as a JSON-encoded string.
Name of the linked application.
Product label such as ContactCenter or FrontDesk.
Call directions of the number, when included.
End of the subscription (RFC 3339).
Whether this is the account’s default outbound number.
Snapshot of the number record, as a JSON-encoded string.
Name of the person who made the change, when supplied.
Free-form notes, e.g. “revoke” after a release was undone.
Internal ID of the number.
When the number was assigned (RFC 3339).
When the number was released (RFC 3339); null while active.
ID of the SIP route list attached to the number, if any.
ID of the SIP route tag attached to the number, if any.
Where the subscription came from, for imported numbers.
Reference of the import the subscription came from.
Start of the subscription (RFC 3339).
Active, or cancellation_request after a release.
Monthly fee recorded for the subscription, in USD (the number’s MRC).
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
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}Missing or invalid credentials (returned by the API gateway)
Example generated
exampleCustomerid is not your account or a direct child
object
Human-readable result or error.
Success or failed.
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
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}The account named in customerid could not be looked up
object
Human-readable result or error.
Success or failed.
Example
{ "message": "phone number not found", "status": "failed"}