Validate OTP - Code
The Validate OTP Code endpoint allows you to verify One-Time Passwords (OTPs) generated by the “Request and Send OTP Code” endpoint. This endpoint performs comprehensive validation checks, ensuring the OTP hasn’t expired, matches the one sent to the user, and hasn’t been used before. This validation process is essential for secure authentication workflows, such as user registration, password resets, transaction confirmations, and account verifications. The response includes detailed validation status and relevant data, allowing applications to make informed decisions based on the authentication result. This endpoint is a critical component in implementing secure, two-factor authentication systems that protect user accounts and sensitive operations.
Overview
This endpoint verifies OTPs generated by the “Request and Send OTP Code” endpoint. It allows you to validate whether the OTP code provided by a user matches the one that was sent.
Request Parameters
The contact ID that received the OTP code. Format: xxx@c.us
The OTP code to validate. Example: “123456”
Response
Indicates whether the request was successful.
A message describing the result of the operation.
Error Codes
Authorization Exception - Occurs when the request is not properly authorized.
Validation Exception - Occurs when the request parameters fail validation.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Response
The response is of type object
.
The response is of type object
.
The response is of type object
.