---
title: "Create phone number assignment order"
method: POST
path: "/api/relay/rest/registry/beta/campaigns/{id}/orders"
tags: ["Campaign Registry: Phone Number Assignments"]
---

# Create phone number assignment order

`POST /api/relay/rest/registry/beta/campaigns/{id}/orders`

Creates a new order for a campaign.

#### Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Messaging_ and _Numbers_.

[Learn more about API scopes](/docs/platform/your-signalwire-api-space).

## Path parameters

- `id` string, uuid, required — Universal Unique Identifier.

## Request body

- CreateOrderRequest — Request body for creating an order.
  - `phone_numbers` string[] — A list of phone numbers in E164 format.
  - `status_callback_url` string — Optional: Specify a URL to receive webhook notifications when your number assignment order and the number assignments that belong to it change state. See the [10DLC status callback](/docs/apis/rest/campaign-registry/webhooks/ten-dlc-status-callback) docs for the webhook payload.

## Response `200`

The request has succeeded.

- OrderResponse — Response containing a single order.
  - `id` string, uuid, required — Universal Unique Identifier.
  - `state` string — The current state of the order.
  - `processed_at` string, date-time — Timestamp when the order was processed.
  - `created_at` string, date-time — Timestamp when the order was created.
  - `updated_at` string, date-time — Timestamp when the order was last updated.
  - `status_callback_url` string — Optional: Specify a URL to receive webhook notifications when your number assignment order and the number assignments that belong to it change state. See the [10DLC status callback](/docs/apis/rest/campaign-registry/webhooks/ten-dlc-status-callback) docs for the webhook payload.

## Other responses

- `401` — Access is unauthorized.
- `404` — The server cannot find the requested resource.
- `422` — The request failed validation. See errors for details.
- `500` — An internal server error occurred.

---

[API](https://skmtc.net/signalwire/apis/signalwire-rest-api.md) · [All operations](https://skmtc.net/signalwire/apis/signalwire-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/signalwire/signalwire-rest-api/versions/05c5164b85c7/schema)
