---
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
    - `phone_number` string, required
    - `code` string, required

## Response `200`

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

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

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