---
title: "Create a number block order"
method: POST
path: "/number_block_orders"
tags: ["Phone Number Block Orders"]
---

# Create a number block order

`POST /number_block_orders`

Creates a phone number block order.

## Request body

- CreateNumberBlockOrderRequest
  - `id` string, uuid
  - `record_type` string
  - `starting_number` string, required — Starting phone number block
  - `range` integer, required — The phone number range included in the block.
  - `phone_numbers_count` integer — The count of phone numbers in the number order.
  - `connection_id` string — Identifies the connection associated with this phone number.
  - `messaging_profile_id` string — Identifies the messaging profile associated with the phone number.
  - `status` 'pending' | 'success' | 'failure' — The status of the order.
  - `customer_reference` string — A customer reference string for customer look ups.
  - `created_at` string, date-time — An ISO 8901 datetime string denoting when the number order was created.
  - `updated_at` string, date-time — An ISO 8901 datetime string for when the number order was updated.
  - `requirements_met` boolean — True if all requirements are met for every phone number, false otherwise.
  - `errors` string — Errors the reservation could happen upon

## Response `200`

Successful response with details about a number block order.

- object
  - `data` NumberBlockOrder
    - `id` string, uuid
    - `record_type` string
    - `starting_number` string — Starting phone number block
    - `range` integer — The phone number range included in the block.
    - `phone_numbers_count` integer — The count of phone numbers in the number order.
    - `connection_id` string — Identifies the connection associated to all numbers in the phone number block.
    - `messaging_profile_id` string — Identifies the messaging profile associated to all numbers in the phone number block.
    - `status` 'pending' | 'success' | 'failure' — The status of the order.
    - `customer_reference` string — A customer reference string for customer look ups.
    - `created_at` string, date-time — An ISO 8901 datetime string denoting when the number order was created.
    - `updated_at` string, date-time — An ISO 8901 datetime string for when the number order was updated.
    - `requirements_met` boolean — True if all requirements are met for every phone number, false otherwise.

## Other responses

- `400` — Bad request, the request was unacceptable, often due to missing a required parameter.
- `401` — Unauthorized
- `404` — The requested resource doesn't exist.
- `422` — Unprocessable entity. Check the 'detail' field in response for details.
- `500` — Unexpected error

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/versions/8f5f4e537994/schema)
