Skip to main content

SEND OTP (Password TOTP)

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

Content-type: application/json

FieldTypeDescriptionExample
StatusStringStatus of the API call (Default: Error)"error"
CodeStringCode representing the error type"e-101"
MessageStringSpecific message describing the error that occurred"Error Message"
post/authentication/v1/user/password/reset/send-otp