Overview
Password reset is a two-step process:- Request a password reset link via email
- Reset the password using the token from the email
Step 1: Request Password Reset Link
Endpoint
HTTP Method
API Endpoint
Authentication
This endpoint does not require authentication (usesguest middleware).
Request Body
The email address of the account to reset.
- Must be a valid email format
- Must exist in the database
Response
Status message indicating the reset link was sent.
Example Request
cURL
Next.js
Success Response
Error Responses
Email Not Found (422)
Validation Error (422)
Step 2: Reset Password
Endpoint
HTTP Method
API Endpoint
Authentication
This endpoint does not require authentication (usesguest middleware).
Request Body
The password reset token received via email.
The email address of the account.
- Must be a valid email format
The new password.
- Must meet Laravel’s default password requirements
- Must be confirmed with
password_confirmation
Password confirmation. Must match the
password field.Response
Status message indicating the password was reset successfully.
Example Request
cURL
Next.js
Success Response
Error Responses
Invalid Token (422)
Validation Error (422)
Notes
- Password reset tokens are single-use and expire after a configured time period
- Upon successful password reset, a
PasswordResetevent is dispatched - The user’s
remember_tokenis regenerated, invalidating existing “remember me” sessions - Password is hashed using Laravel’s
Hash::make()before storage - After successful reset, the user must login with the new password