TTWrite API: Reset User Password

Endpoint URL

//ttwrite.4up.eu/mobile_api/resetpassword

Description

This API allows users to reset their password by providing the necessary recovery details.

Parameters

FieldValueRemarks
emailstringThe email address associated with the user account.
reset_codestringOptional. The code sent to the user’s email for verification.
new_passwordstringOptional. The new password to be set after verification.

Example Usage

Step 1: Request Password Reset

httpCopy codePOST //ttwrite.4up.eu/mobile_api/resetpassword
Content-Type: application/json

{
  "email": "[email protected]"
}

Step 2: Submit Reset Code and New Password

httpCopy codePOST //ttwrite.4up.eu/mobile_api/resetpassword
Content-Type: application/json

{
  "email": "[email protected]",
  "reset_code": "123456",
  "new_password": "newsecurepassword"
}

Notes

  • The process typically involves two steps:
    1. Request a reset code to be sent to the user’s email.
    2. Submit the reset code along with the new password to complete the process.
  • Authentication is not required for initiating a reset but is required for confirming the reset.
  • Ensure the email is registered on the platform.