Skip to content

Delete an unassigned inventory number

DELETE
/v1/Accounts/{auth_id}/AvailablePhoneNumbers/{phone_number}
curl --request DELETE \
--url 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/AvailablePhoneNumbers/%2B15555550100?modified_by=jane%40example.com' \
--header 'Authorization: Basic <credentials>'

Vendor accounts only. Removes an unassigned number from your inventory by marking it deleted; it no longer appears in searches and cannot be assigned. Only numbers in your inventory (you are the vendor) that are active and not assigned to an account can be deleted. The phone number may be written with or without + and spaces.

auth_id
required
string

Your Auth ID.

Example

AC000000000000000000
phone_number
required
string

The inventory number.

Example

+15555550100
modified_by
string

Name of the person making the change, recorded in the audit log.

Example

jane@example.com

Deleted: status success, message ‘Available phone number deleted’

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

Not your inventory (auth id does not match parent auth id), assigned (unavailable number cannot be deleted), already deleted, or not active

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

Phone number not found

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