---
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
    - `phone_number` string, required — Phone number for which the verification code was created
    - `verification_code_id` string, uuid — Unique identifier for the verification code
    - `type` 'sms' | 'call' — Type of verification method used
    - `error` string — Error message describing why the verification code creation failed

## Other responses

- `4XX` — Unexpected error

---

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