---
title: "Create hosted number verification codes"
method: POST
path: "/messaging_hosted_number_orders/{id}/verification_codes"
tags: ["Hosted Numbers"]
---

# Create hosted number verification codes

`POST /messaging_hosted_number_orders/{id}/verification_codes`

Create verification codes to validate numbers of the hosted order. The verification codes will be sent to the numbers of the hosted order.

## Path parameters

- `id` string, required

## Request body

- VerificationCodesRequest
  - `phone_numbers` string[], required
  - `verification_method` 'sms' | 'call', required

## Response `200`

Verification codes created and sent to the phone numbers of the hosted order.

- CreatedVerificationCodesResponse
  - `data` object[], required
    - `error` string — Error message describing why the verification code creation failed
    - `phone_number` string, required — Phone number for which the verification code was created
    - `type` 'sms' | 'call' — Type of verification method used
    - `verification_code_id` string, uuid — Unique identifier for the verification code

## Other responses

- `4XX` — Unexpected error

## Changes

- **2026-08-17** `1571b0380bd7` — 3 breaking
  - the response's body type/format changed from `object`/`` to ``/`` for status `4XX`
  - the `errors/items/` response's property type/format changed from `object`/`` to ``/`` for status `4XX`
  - the `errors/items/code` response's property type/format changed from `integer`/`int32` to `string`/`` for status `4XX`
- **2026-08-04** `8f5f4e537994` — 4 breaking
  - the response's body type/format changed from ``/`` to `object`/`` for status `4XX`
  - the `errors/items/` response's property type/format changed from ``/`` to `object`/`` for status `4XX`
  - the `errors/items/code` response's property type/format changed from `string`/`` to `integer`/`int32` for status `4XX`
  - the `errors/items/source/pointer` response's property type/format changed from `string`/`json-pointer` to `string`/`` for status `4XX`

[Change history](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/changes/messaging_hosted_number_orders/:id/verification_codes/post.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/3fdc16374d70/schema)
