Skip to main content

Set Password

This API allows the user to set a new password after successfully verifying the OTP. It is the final step in the Forgot Password flow.

🔑Header Parameters

HeadersTypeRequiredDescriptionExample
Content-typestringYesThe media type of the request bodyapplication/json
x-api-keystringYesAPI key provided for authenticationx-api-key

📦 Request Body Schema

FieldTypeRequiredDescriptionExample
user_idstringYesUnique Client Code assigned to the user"UCC123456"
new_passwordstringYesThe new password to be set by the user"Mysecure@123"
otpstringYesTemporary OTP token generated from Verify OTP API"{{forgot_password_token}}"
api_keystringYesAPI key provided by synapsewave"apikey_from_synapse"
sourcestringYesPlatform used - WEBAPI for browser based and MobileAPI for App based."WEBAPI"

🟢Success Response

FieldTypeDescriptionExample
statusstringIndicates the status of API Call."success"
codestringInternal Response code."s-101"
messagestringUser-friendly message."Password changed Successfully"