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);
Antwort200
{
  "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.

Anfrage-Nutzlast

number_ids
array of string
erforderlich

Select up to 25 distinct numbers from one workspace.

Antwort-Payload

data
array of object
erforderlich

One outcome per number, in request order.

Untergeordnete Attribute anzeigen

Weiter mit der Dokumentation, Anleitungen und Beispielen zu diesem Thema.