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 token to be used for setting a new password.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
post/authentication/v1/user/otp/verify