---
title: "Validate Code"
method: POST
path: "/otp/code/validate"
---

# Validate Code

`POST /otp/code/validate`

The Validate OTP Code endpoint allows you to verify OTPs generated by the "Request and Send OTP Code" endpoint. This endpoint checks the validity of the OTP, ensuring it hasn't expired and matches the one sent. The response will include the validation status and relevant data.

## Request body

- object
  - `contact_id` string, required
  - `code` string, required

## Response `200`

200

- object
  - `success` boolean
  - `message` string
  - `data` object
    - `id` string
    - `code` string
    - `contact_id` string
    - `is_validated` boolean
    - `timestamp` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/crunchz/apis/live.md) · [All operations](https://skmtc.net/crunchz/apis/live/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crunchz/live/versions/14e6b45e8808/schema)
