v1

latestOpenAPI 3.1.02026-07-14330101.9 KB

Validate Code

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.

post/otp/code/validate

Request body

contact_idstring required
codestring required

Response

200

successboolean
messagestring

Example response

{
  "success": true,
  "message": "string",
  "data": {
    "id": "string",
    "code": "string",
    "contact_id": "string",
    "is_validated": true,
    "timestamp": "string"
  }
}