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

# Validate hosted number codes

`POST /messaging_hosted_number_orders/{id}/validation_codes`

Validate the verification codes sent to the numbers of the hosted order. The verification codes must be created in the verification codes endpoint.

## Path parameters

- `id` string, required

## Request body

- ValidationCodesRequest
  - `verification_codes` object[], required
    - `code` string, required
    - `phone_number` string, required

## Response `200`

Successful response with the phone numbers and their respective status of the validation codes.

- object
  - `data` ValidationCodes
    - `order_id` string, uuid, required
    - `phone_numbers` object[], required
      - `phone_number` string, required
      - `status` 'verified' | 'rejected' | 'already_verified', required

## 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/validation_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)
