Skip to main content

SEND OTP​

Sends one time passoword (OTP) to the registered mobile number of the user. This API supports flow such as Forgot Passwords and for Registering Time-Based OTP (TOTP) for 2FA.

📦 Request Body Schema​

FieldsTypeRequiredENUM/ExampleDescription
user_idStringYes"UCC123456"Unqiue client code (UCC) provided to the user.
api_keyStringYes"abc123xyz"API key provided to user by Synapsewave
sourceStringYes"WEBAPI", "MOBILEAPI"Platform making the request; WEBAPI for browsers and MOBILEAPI for apps

🟢Success Response - 200K​

Content-type: application/json

FieldTypeDescriptionExample
StatusStringStatus of the API Call (Default: Success)"success"
CodeStringCode representing the response type"s-101"
MessageStringHuman readable message"OTP sent to reset Password."

🔴 Error Response - 400 Bad Request​

FieldTypeDescriptionExample
statusstringStatus of the API call Default Error"error"
codestringError code indicating the failure"e-101"
messagestringSpecific message explaining why the requested resource was not found"Error Message"