@xfloor-memory-sdk
  1. Registration
@xfloor-memory-sdk
  • Get Started
    • Overview
    • Quick Start
    • Authentication and Identification
    • Core Concepts (5-Minute Read)
    • What to Use First (API Map)
  • SDK
    • Overview
    • SDK Installation & Setup
    • Python SDK
    • JavaScript SDK
    • Typescript SDK
    • Java SDK
    • FAQ & Troubleshooting
    • Copy-Paste Debug Checklists
  • Core FloorMemory
    • Query (Primary API)
      POST
    • Create Event (Post Content)
      POST
    • Recent Events
      GET
    • Basic information of a floor
      GET
  • Floor Management
    • Edit floor
    • Make floor Private
    • Make floor public
    • Rename floor
  • Registration
    • Sign Up
      POST
    • Sign In with email ID
      POST
    • Sign In with Mobile number
      POST
    • Validation
      POST
    • Change Password
      POST
    • Reset Password
      POST
    • Change email ID
      POST
    • Change Mobile number
      POST
    • Send Validation code
      POST
    • External User Registration
      POST
  • SDKs
  • Schemas
    • PostAdd
    • QueryResponse
    • Media
    • UserDetails
    • SignUpResponse
    • BlockDetails
    • FloorInfo
    • Threads
    • EventResponse
    • 400ErrorCode
    • Remaining
  1. Registration

Reset Password

Developing
POST
/auth-service/password/reset

Reset Password (Forgot Password, Not Logged In)#

Resets the password of a user who cannot log in and is using a forgot-password flow.
This endpoint is used when the user is not authenticated and requests a password reset using a verified identity channel such as email or mobile number. The system validates a one-time reset verification code (activation_code) issued for the reset-password flow. If valid and not expired, the password is updated to new_password and takes effect immediately.
If verification fails, the password remains unchanged and an error response is returned.

Authentication#

✅ Recommended (better security): a short-lived reset token issued after initiating reset
Authorization: Bearer <reset_token>
> If you don’t use a reset token, you must enforce strong rate limiting + OTP attempt throttling on this endpoint.

Request Body (Form Data)#

* email_id or mobile_number (required to identify user)
* activation_code (required)
* new_password (required)
* user_id (optional, if your reset flow already resolved it)

Behavior Notes#

* Requires a prior call to initiate reset and send OTP/code (mode = forgot password).
* Must enforce code attempt limits and expiration strictly.

One-Line Summary#

> Resets a user’s password (forgot-password flow) after validating a one-time reset code sent to email or mobile.

Request

Body Params multipart/form-dataRequired

Responses

🟢200Success
application/json
Body

🟠400BadRequest
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://appfloor.in/auth-service/password/reset' \
--form 'mobile_number=""' \
--form 'email_id=""' \
--form 'new_password=""' \
--form 'activation_code=""' \
--form 'app_id=""'
Response Response Example
200 - Example 1
{
    "success": "string"
}
Modified at 2026-03-02 15:00:56
Previous
Change Password
Next
Change email ID
Built with