Verify OTP

Verify the OTP received by the user. Each OTP has a limited number of verification attempts.

post/dev/otp/verify

Request

  • Base URL
    https://www.fast2sms.com
  • URL
    https://www.fast2sms.com/dev/otp/verify
  • Auth
    none declared. Required headers: Authorization

Headers

Authorizationstring required

Provide "YOUR_API_KEY".

Request body

mobilestring required

10-digit Indian mobile number.

otpstring required

The OTP to verify.

Example request

{
  "mobile": "9999999999",
  "otp": "123456"
}

Response

OTP verified successfully

returnboolean
status_codeinteger
messagestring

Example response

{
  "return": true,
  "status_code": 200,
  "message": "OTP verified successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.