Skip to main content

Verify OTP

This API is used to verify the OTP entered by the user against the one sent through the Send OTP API. It helps confirm the user's identity before allowing sensitive actions like password reset.

🔑Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies request format.application/json
x-api-keystringAPI key provided for authenticationx-api-key

📦 Request Body Schema

FieldTypeRequiredDescriptionExample/ENUM
user_idstringYesUnique Client Code (UCC) assigned to the user.user123456
otpstringYesThe OTP received by the user.123456
api_keystringYesAPI key provided by SynapseWave to authenticate the request.x-api-key
sourcestringYesPlatform making the request; WEBAPI for browsers and MOBILEAPI for apps"WEBAPI" , "MOBILEAPI"

🟢Success Response- 200 OK

FieldTypeDescriptionExample
statusstringStatus of the API call. Usually "success" on verification"success"
codestringStandard Response Code"s-101"
messagestringUser-friendly message confirming the result."OTP Verified Successfully"
datastringTemporary JWT token (forgot_password_token). Must be passed to the next API in the flow"eyJhbGciOiJIUzI1NiJ9..."
What's Next?

The data field in the success response contains the forgot_password_token.

Use this value as the otp parameter in the following APIs:

🔑 Set Password — Reset a forgotten password
🔐 Register TOTP — Begin TOTP registration
📱 Set MPIN— Reset a forgotten MPIN
👆 Set Fingerprint — Reset fingerprint authentication