App\Http\Controllers\Api\V1\Auth\AuthController::resetPassword()api.v1.auth.password.resetthrottle:auth — 10 requests per minute per IP address.POST/api/v1/auth/password/resetapplication/json{
"token": "8f14e45fceea167a5a36dedd4bea2543...",
"email": "diver@example.com",
"password": "NewSecurePass123!",
"password_confirmation": "NewSecurePass123!"
}| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
token | string | Yes | required|string | From the reset link |
email | string | Yes | required|email:rfc,dns | Must match the address the token was issued for |
password | string | Yes | required|string|confirmed plus the password policy | Same policy as registration |
password_confirmation | string | Yes | required|same:password |
App\Http\Requests\Api\V1\Auth\ResetPasswordRequest.200 OK{
"success": true,
"status": "success",
"message": "Password reset successfully"
}data key, and no token. The client must call POST /api/v1/auth/login with the new password.422 Unprocessable Entity — validation{
"success": false,
"status": "error",
"message": "Validation failed",
"errors": {
"password": ["The password field must contain at least one uppercase and one lowercase letter."]
}
}422 Unprocessable Entity — domain rejectionerrors key. Covers an unregistered email, an expired token, a token already used, and a token that does not match the supplied email — the same response either way, so the endpoint does not reveal whether the email is registered.{
"success": false,
"status": "error",
"message": "Invalid or expired reset token"
}429 Too Many Requests{
"success": false,
"status": "error",
"message": "Too many requests"
}Retry-After header present. The throttle:auth limiter allows 10 requests per minute per IP address, shared across register, login, password/forgot and password/reset.PATCH /api/v1/profile/password, where the caller authenticates with their current password and their own token survives.PasswordReset event dispatched, remember token regenerated.docs/api/auth/POST_reset_password.mdcurl --location 'https://test.diveraid.com/api/v1/auth/password/reset' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "string",
"email": "user@example.com",
"password": "pa$$word",
"password_confirmation": "pa$$word"
}'{
"status": "success",
"message": "string",
"data": null
}