Sign inGet Started

Cancel multiple dedicated numbers

POST
/v1/numbers/bulk-cancel
const answer = await bird.numbers.cancelBulk({
  number_ids: [
    "nda_01krdgeqcxet5s7t44vh8rt9mg",
    "nda_01krdgeqcxet5s7t44vh8rt9mh",
  ],
});
for (const item of answer.data) console.log(item.number_id, item.outcome);
Respuesta200
{
  "data": [
    {
      "number_id": "nda_01krdgeqcxet5s7t44vh8rt9mg",
      "outcome": "scheduled",
      "releases_at": "2026-12-01T00:00:00Z"
    }
  ]
}

Cancel up to 25 numbers in one workspace. Each billed number remains allocated until its paid period ends. Existing restrictions still apply. On first dispatch, each submitted number counts toward the same rate limit as an individual cancellation (60 per minute by default). If the list exceeds the configured rate limit, the API returns 422 with the maximum batch size. If the list fits that limit but exceeds the remaining budget, the API returns 429 with Retry-After. Both responses leave every number unchanged. A number without a subscription is released immediately. Repeating a scheduled cancellation keeps its release date. Read each result to see which cancellations succeeded and why a number could not be canceled. Retry unattempted numbers in a new request with a new key. Check the allocation before retrying an unknown outcome. To retrieve a stored response without consuming more cancellation capacity, use the same key and identical request.

Cuerpo de la solicitud

number_ids
array of string
obligatorio

Select up to 25 distinct numbers from one workspace.

Carga de respuesta

data
array of object
obligatorio

One outcome per number, in request order.

Mostrar atributos secundarios
data.number_id
string
obligatorio

Identifier of a number allocated to your workspace, as returned in the id field of GET /v1/numbers.

data.outcome
string
obligatorio

A scheduled number remains allocated with its current restrictions until its release date. A released number was given up immediately. A failed item was refused. Retry unattempted items in a new request. For an unknown outcome, check the number before retrying because the cancellation may have taken effect.

Possible values: scheduled, released, failed, not_attempted, unknown

data.releases_at
string

End of the paid period for a scheduled cancellation.

data.released_at
string

Time of release for an immediately released number.

data.error
object

Reason for a failed cancellation. Unattempted and unknown outcomes carry E01037.

Mostrar atributos secundarios