---
title: "Release Phone Number"
method: POST
path: "/v1/numbers/{number_id}/release"
tags: ["Numbers"]
---

# Release Phone Number

`POST /v1/numbers/{number_id}/release`

## Request

- Base URL: `https://api.agentline.cloud`
- URL: `https://api.agentline.cloud/v1/numbers/{number_id}/release`
- Auth: HTTP bearer

Permanently release a phone number that is not in use.

Destructive: unrents the number from the carrier. The number cannot
be recovered, and calls and texts to it will stop. Refused while a
call is in progress or a lease is still active.

Returns number_id, phone_number, status "released", released true and a
warning. HTTP 409 if the number is not active, is on a call or has an
active lease; HTTP 502 if the carrier refuses (the number stays active).

## Path parameters

- `number_id` string, required: Phone number ID (num_...) from list_phone_numbers or buy_phone_number, not the phone number itself.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agentline/apis/agentline-prepaid-phone-service-for-ai-agents.md) · [All operations](https://skmtc.dev/agentline/apis/agentline-prepaid-phone-service-for-ai-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/agentline/apis/agentline-prepaid-phone-service-for-ai-agents/revisions/18c0bdbb4b30?raw)
