Skip to main content

SEND OTP (Password TOTP)​

Sends one time password (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.

🔑Header Parameters​

HeaderTypeDescriptionExample
Content-TypeStringSpecifies the format of the request body.application/json
x-api-keyStringThe API key provided for identifying the client application.x-api-key

📦 Request Body Schema​

FieldsTypeRequiredENUM/ExampleDescription
user_idStringYes"UCC123456"Unique 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 - 200 OK​

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."
Next Step

Pass the OTP received on the user's mobile number to the Verify OTP API to obtain a forgot_password_token.

You can then use the returned token with either: