---
title: "Verify WhatsApp OTP V2"
method: POST
path: "/v2/whatsapp/otp/verify/sandbox"
tags: ["Sandbox - WhatsApp OTP"]
---

# Verify WhatsApp OTP V2

`POST /v2/whatsapp/otp/verify/sandbox`

## Request

- Base URL: `https://api.verihubs.com`
- URL: `https://api.verihubs.com/v2/whatsapp/otp/verify/sandbox`
- Auth: none declared. Required headers: `App-ID`, `API-Key`

This method helps you to verify one-time password to destination number in sandbox environment.

To obtain the appropriate response, the payload input must adhere to the predetermined scenario. <br>
   Input other than the scenario will be considered an Invalid Scenario <br>
 #### Response & Status Description
  Msisdn       | Description          | Response |
   -----------|:---------------------|:-------------------------- |
   6282123060007        | Verify OTP Success      | 200 "OTP has been verified" |
   6282123060008        | User Input Invalid OTP          | 404 " OTP not found" |
   6282123060009        | Exceeded time limit      |   422 "OTP cannot be verified because Time limit exceeded"|
   |

## Headers

- `App-ID` string, required
- `API-Key` string, required

## Request body

- VerifyWhatsappOtp
  - `msisdn` string, required: This value is destination number. You need to include international prefix number.
  - `otp` string, required: Code received by destination number.
  - `challenge` string: This value is a category. You can verify OTP based on the same challenge.

## Response `200`

Successful Response

- ResponseVerifyWhatsappOTP
  - `message` string, required: Message

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/verihubs/apis/sandbox-whatsapp-api-documentation.md) - [All operations](https://skmtc.dev/verihubs/apis/sandbox-whatsapp-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/verihubs/apis/sandbox-whatsapp-api-documentation/revisions/80813f4bc2e7?raw)
