Skip to content

Forgot Password User

Request a password reset OTP for a user account.

Endpoint

POST /v1/accounts/forget/password/user/

Authentication

Not required (public endpoint)

Request Body

{
  "email": "user@example.com"
}

Parameters

Field Type Required Description Validation
email string Yes User's email address Valid email format

Response

Success (200 OK)

{
  "message": "Verification code sent to email"
}

A 6-digit OTP code is sent to the user's email. Use this OTP with Confirm Forgot Password User to reset the password.

Error Responses

User Not Found (404)

{
  "error": "User Not Found"
}

Example Request

curl -X POST "https://api.luxmart.site/v1/accounts/forget/password/user/" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com"
  }'

Notes

  • A new OTP is generated and stored for the user
  • Previous OTP is replaced
  • OTP is sent asynchronously via email
  • All user tokens are invalidated after password reset