---
title: "Verify a submitted OTP code"
method: POST
path: "/v2/otp/verify"
tags: ["otp-v2"]
---

# Verify a submitted OTP code

`POST /v2/otp/verify`

## Request

- Base URL: `https://api.tracklysms.com/api`
- URL: `https://api.tracklysms.com/api/v2/otp/verify`
- Auth: API key in header `X-Api-Key`

## Request body

- OTPVerifyRequest
  - `code` string, required: Submitted OTP code
  - `to` string, required: Phone number

## Response `200`

Verification result

- OTPVerifyResponse
  - `reason` string: Verification result reason
  - `valid` boolean

## Other responses

- `400`: Validation error

---

[API](https://skmtc.dev/tracklysms/apis/trackly-sms-api.md) · [All operations](https://skmtc.dev/tracklysms/apis/trackly-sms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tracklysms/apis/trackly-sms-api/revisions/ac1ad22cb2a9?raw)
