---
title: "Release (cancel) a phone number"
method: DELETE
path: "/v1/phone-numbers/{id}"
tags: ["Phone Numbers"]
---

# Release (cancel) a phone number

`DELETE /v1/phone-numbers/{id}`

## Request

- Base URL: `https://api.honkio.ca`
- URL: `https://api.honkio.ca/v1/phone-numbers/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Releases the number at the carrier and answers 204, also when the carrier had already let it go. If the carrier does not accept the release, answers 502 RELEASE_FAILED and the number stays yours, unchanged; try again.

Requires `phone_numbers:d`.

## Path parameters

- `id` string, required

## Response `204`

Released, or already released at the carrier.

## Other responses

- `401`: Missing, invalid, revoked or expired API key.
- `402`: The account has no balance, or a LIVE key was used before the first top-up.
- `403`: LIVE_KEY_REQUIRED: test keys cannot reach live resources here. Also FORBIDDEN when the key lacks the permission this operation requires, or the account is suspended or closed.
- `404`: NOT_FOUND: no such number on this account, or it is already released.
- `429`: Rate limit reached: 100 requests per second per account, or a route-specific limit (Retry-After set where one applies).
- `500`: Unexpected server error.
- `502`: RELEASE_FAILED: the carrier did not accept the release. The number stays yours, unchanged; try again.

---

[API](https://skmtc.dev/honkio/apis/honkio-api.md) · [All operations](https://skmtc.dev/honkio/apis/honkio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/honkio/apis/honkio-api/revisions/ce4ed3fe9691?raw)
