Skip to content

telephony.phoneNumbers.delete

Remove a number.

Reference

DELETE/api/v1/organizations/telephony-configs/{config_id}/phone-numbers/{phone_number_id}

Auth
API key in X-API-Key
Content
none
Returns
200 · any

Remove a number added by hand against the account's own carrier. Refuses on a number Decibyl bought (``carrier_number_id`` set), whatever its status. A live one is still rented at the carrier — deleting the row would orphan that rental with nothing left pointing at it, since this row is the only record we ever held the number. Use ``POST /managed-numbers/{id}/release`` instead, which actually gives the number back and closes the rental. A released one keeps its row on purpose too: it is the audit trail for a number that may still be on the customer's signage.

Arguments

ArgumentInTypeRequiredDescription
config_idpathintegerrequired
phone_number_idpathintegerrequired

Example request

curl -X DELETE "https://api.decibyl.ai/api/v1/organizations/telephony-configs/<config_id>/phone-numbers/<phone_number_id>" \
  -H "X-API-Key: dcb_your_key"

Response

{}

Errors

StatusWhen
404Not found
422Validation Error