Skip to content

Release a phone number

POST
/phone-numbers/release

Give a number back to the carrier. IRREVERSIBLE.

The number returns to the provider’s pool and can be bought by anyone, including a competitor. Inbound calls and messages to it stop reaching this organisation immediately; there is no grace period and no undo.

Order matters and is not transactional: the carrier release happens first, then voice deregistration (best-effort), then the local record. A failure after the carrier release leaves the number gone but the record behind - which is why this returns the outcome rather than a bare 204.

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Give a number back to the carrier. IRREVERSIBLE.

Mirrors phone_numbers.interfaces.fastapi.dtos.ReleasePhoneRequest.

object
phone_number
required

The number to release, E.164.

string
provider
required

The carrier that holds it. It must match what the number was bought from - releasing a Telnyx number as twilio reaches the wrong provider.

string
Allowed values: twilio telnyx

Responses

200

Successful Response

object
data
required

An open envelope for a purchase result, a release, or an A2P job.

Open on purpose. A purchase returns the stored row (whose capability and provider-metadata keys differ per provider), a workflow start returns a workflow_id, and the A2P reconcile returns per-number outcomes that grow as carriers add statuses. Pinning it would silently drop whatever the provider reported that this contract had not caught up on.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string