Sign inGet Started

Create a number order

POST
/v1/numbers/orders
const order = await bird.numbers.orders.create({ number: "+447700900201" });
// Most orders finish inside the request. One that has to wait on a carrier
// comes back without a number_id. Poll it until it is completed or failed.
if (order.status === "completed") {
  console.log("allocated as", order.number_id);
} else {
  console.log("still", order.status, "; poll", order.id);
}
Respuesta201
{
  "id": "nor_01krdgeqcxet5s7t44vh8rt9mg",
  "number": "+18005550100",
  "country_code": "US",
  "number_type": "toll_free",
  "status": "completed",
  "number_id": "nda_01krdgeqcxet5s7t44vh8rt9mg",
  "failure_reason": null,
  "completed_at": "2026-05-25T14:03:12Z",
  "created_at": "2026-05-25T14:03:10Z",
  "updated_at": "2026-05-25T14:03:12Z",
  "ownership": {
    "satisfied": false,
    "status": "needs_input",
    "blocked_at": "2026-05-25T14:03:12Z",
    "next": [
      {
        "kind": "operation",
        "description": "See what this country requires to prove you own this number",
        "operation": "getWorkspaceComplianceRequirements",
        "params": {
          "subject_kind": "number",
          "subject_id": "nda_01krdgeqcxet5s7t44vh8rt9mg",
          "country_code": "US"
        }
      },
      {
        "kind": "operation",
        "description": "Send your answers",
        "operation": "createWorkspaceComplianceSubmission"
      }
    ]
  }
}

Orders a number for your workspace and starts its recurring charge. The available number's pricing is the current price, not a quote: the order resolves the price again when it charges, so a price published in between applies; a carrier number's setup fee is usually the amount held when the order was placed, or is charged then. Pass a number from GET /v1/numbers/available. Whether the number is already in inventory or acquired from a supplier, the response contains an order.

Most orders complete immediately and return 201 with status of completed and number_id populated. That ID identifies the associated workspace allocation; multiple orders can refer to it. Read its current holding state with GET /v1/numbers/{number_id}, which can return not found after release. The completed order remains in history. An order that cannot complete in the request returns 202; poll GET /v1/numbers/orders/{order_id} until it is completed or failed.

Some countries require ownership paperwork before a number can send SMS or handle voice calls. A completed order then reports the number's ownership, whose next lists what to do.

A 412 means required identity verification is incomplete or organization eligibility prevents the purchase. Follow the error's recovery guidance: complete missing verification, or contact support about an eligibility review or denial. An eligibility assessment still in progress returns 503; retry later.

Sending a compliance block uses the order's existing numbers scope at write level.

Cuerpo de la solicitud

number
string
obligatorio

The number to acquire, in E.164 format, as returned by GET /v1/numbers/available.

reference
string

Your own reference to set on the number when this purchase completes. Leading and trailing whitespace is removed. A pending order keeps the reference until the number is allocated.

compliance
object

Ownership paperwork for a number being ordered, where its country requires any. Optional always: the order completes and the number is yours either way, and supplying this only decides whether it can carry traffic sooner. Read GET /v1/compliance/requirements for the number to learn what is asked for, or file it after the order with POST /v1/compliance/submissions. Filing this cannot fail your order: if it is refused, the number is still yours and you can file again. The answers are a legal representation filed under the name of the business they describe. Sending this block uses the order's existing numbers scope at write level.

Mostrar parámetros secundarios

Carga de respuesta

id
string
obligatorio

Identifier of this number order.

number
string
obligatorio

The number being acquired, in E.164 format.

country_code
string
obligatorio

ISO 3166-1 alpha-2 country code.

number_type
string
obligatorio

Physical type of the number being acquired.

Possible values (may grow over time): mobile, local, national, short_code, short_code_fteu, toll_free

status
string
obligatorio

Lifecycle state of a number purchase order:

  • charging: Securing funds.
  • ordering: Placing the order with the carrier.
  • pending: The carrier accepted the order and is provisioning the number. A carrier number is usually charged on delivery: keep funds available, because a delivered number that still cannot be charged is released no sooner than 72 hours after the order was placed, and its order fails.
  • completed: Your workspace owns the number.
  • failed: The purchase did not complete.

A number from a carrier is usually charged when the carrier delivers it. A setup fee already charged, for an inventory number or a carrier number charged upfront, is not refunded when its purchase fails, unless the deadline releases the delivered number. Contact support about a failed order.

Possible values (may grow over time): charging, ordering, pending, completed, failed

number_id
nullable string

Identifier of the workspace allocation associated with this completed order. Multiple orders can refer to the same allocation. This historical association remains after release; GET /v1/numbers/{number_id} returns its current holding state and can return not found after release. null until the order completes.

failure_reason
nullable string

Human-readable reason the purchase failed. null unless status is failed. An order can fail some time after it was created, so updated_at tells you when the failure was recorded rather than when the order was placed.

completed_at
nullable string

When this order completed (status completed). Completion records the associated allocation and does not establish its current holding state. null for orders still in progress or failed.

created_at
string
obligatorio
updated_at
string
obligatorio
ownership
nullable object

Ownership paperwork and activation progress for the number this order bought: the same object GET /v1/numbers/{number_id} reports. Reported once the order is completed, when you create an order or read one. null when no ownership requirements, block or decision apply to the number, when requirements could not be read and no block or decision is recorded, and after the number is released. Absent from order lists and while the order is in progress or failed. Also absent when the number could not be read; read the order again then. Follow its next to see what the country requires and to send your answers.

Mostrar atributos secundarios
ownership.submission_id
string

The most recent ownership submission for this number, including after approval. Users with compliance read access can view the filed answers and their review status from the number's details in the dashboard. This may be a newer filing than the one that cleared the number for use. Absent when no submission was found or submission progress could not be read.

ownership.satisfied
boolean
obligatorio

Whether the ownership paperwork is accepted or is no longer required. This can remain true while an external verifier asks for a correction or activation is pending. Read status and next for the current step, and blocked_at for the ownership block on outbound SMS and inbound and outbound voice.

ownership.status
string
obligatorio

Current ownership registration approval status. Operational activation is separate: blocked_at records the ownership block on number use, and next describes remaining work.

  • needs_input means ownership details or a submission correction are needed, including when Bird closed a submission but accepts corrected details.
  • under_review means your current answers are being reviewed. Until the submission is approved, you can still change any answer; a changed answer is reviewed again.
  • approval_pending means your paperwork is accepted but registration approval is still pending.
  • approved means ownership registration is approved. Number activation can still be pending while blocked_at is non-null.
  • not_required means no active ownership requirement applies, including after a requirement is withdrawn.
  • rejected means the submission was closed without accepting another one, or the verifier correction deadline passed. Corrections are no longer accepted for this submission. Contact support.
  • unknown means current approval status could not be determined. Read blocked_at for any recorded ownership block; if unavailable_at is present, contact support, otherwise retry the read.

Possible values: needs_input, under_review, approval_pending, approved, not_required, rejected, unknown

ownership.blocked_at
nullable string

When ownership requirements began blocking outbound SMS and inbound and outbound voice calls. Null when that block is clear. Accepted paperwork can still await activation with a block in place. A number bought before ownership requirements were introduced can have outstanding paperwork without a block.

ownership.unavailable_at
string

When the number became unavailable. It cannot be activated; contact support. Absent while the number is available.

ownership.registration_due_at
string

The deadline for completing the number's ownership details. A number with incomplete or inaccurate details can be removed sooner. Absent when no deadline is known or while unavailable_at is set.

ownership.next
array of object
obligatorio

Actions that advance ownership registration or activation, in order. Empty when neither needs further action. A wait step means no customer action is needed now, including while accepted paperwork awaits activation. Read this list again after each change.

Mostrar atributos secundarios
ownership.next.kind
string
obligatorio

What you do about this step.

  • operation: call the operation named in operation, then read again.
  • external: act somewhere this API does not reach, then read again.
  • wait: nothing is asked of you, so read again later.
  • terminal: nothing you do resolves this, so stop retrying.

Tolerate a value you do not recognize: show the description and offer no action.

Possible values (may grow over time): operation, external, wait, terminal

ownership.next.description
string
obligatorio

A short, human-readable label for the step, suitable for display.

ownership.next.operation
string

The operationId to call. Present only when kind is operation. The operation's own schema says how to call it; this says only which one, and what to address it with.

ownership.next.params
object

The parameters that address the operation, by name: {"sender_id": "…"} for an operation on /v1/sms/senders/{sender_id}/requirements. A parameter the operation takes in its query string is given the same way, so an operation addressed as ?subject_id= carries {"subject_id": "…"}. Every parameter the call needs is here, whether its value came from the thing you were acting on or is fixed for this step, so you can make the call from this object alone. Present only when kind is operation and the operation names a subject. A request body, when the operation takes one, is described by the operation's own schema and never appears here.

ownership.next.url
string

A URL to open. Present only when kind is external, and only when the step has one. An external step whose description says to go and do something with no URL to open is normal.

Continúa con la documentación, guías y ejemplos de este tema.