Reset Password
The password reset flow consists of two endpoints:- Send Reset Link - Request a password reset link via email
- Reset Password - Reset the password using the token from the email
Send Reset Link
Request a password reset link to be sent to the user’s email address.Endpoint
Request
User’s email address. Must be a valid email that exists in the system.
Response
Indicates whether the request was successful
Success message indicating the reset link was sent
Example Request
Example Response
Error Responses
422 Validation Error - Email not found
422 Validation Error - Email not found
500 Internal Server Error - Failed to send email
500 Internal Server Error - Failed to send email
Reset Password
Reset the user’s password using the token received via email.This endpoint returns an HTML view rather than JSON. It is typically accessed via a link in the password reset email.
Endpoint
Request
User’s email address.
New password. Must be at least 8 characters.
Password confirmation. Must match the password field.
Password reset token received via email.
Response
Returns an HTML view indicating the success or failure of the password reset operation.Example Request
Success Response
Returns an HTML view with a success message:Error Responses
Invalid User
Invalid User
Invalid Token
Invalid Token
Reset Failed
Reset Failed
422 Validation Error - Password confirmation mismatch
422 Validation Error - Password confirmation mismatch
Returns validation error if password and password_confirmation don’t match or if password is less than 8 characters.
Password Reset Flow
- User requests a password reset by providing their email via
POST /auth/reset-password - System sends an email with a password reset link containing a token
- User clicks the link and is directed to a password reset form
- User submits new password with the token via
PUT /auth/reset-password - System validates the token, resets the password, and sends a confirmation email