Request processed successfully. If the email exists in the database, a reset token has been sent.Note: This response is returned even if the email doesn’t exist, to prevent email enumeration attacks.
The API validates the email format using Jakarta Bean Validation
2
Generate Reset Token
If the user exists:
A unique reset token is generated (UUID format)
Token is stored in the database with expiration timestamp
Token expiration: 1 hour from generation
3
Send Email
An email is sent to the user containing:
Password reset link with embedded token
Token expiration time
Security warning about unsolicited requests
4
Return Response
API returns HTTP 200 without revealing whether the email exists
Security Note: The API always returns HTTP 200, even if the email doesn’t exist in the database. This prevents attackers from using this endpoint to enumerate registered email addresses.
Reset token received via emailValidation: Must not be blankFormat: UUID string (e.g., "550e8400-e29b-41d4-a716-446655440000")Example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Subject: Password Reset Request - Invernaderos APIHello,We received a request to reset your password for your Invernaderos account.Click the link below to reset your password:https://app.invernaderos.com/reset-password?token=a1b2c3d4-e5f6-7890-abcd-ef1234567890This link will expire in 1 hour.If you didn't request this password reset, please ignore this email or contact supportif you have concerns.For security reasons, we will never ask you for your password via email.---Invernaderos Team
Error: “Invalid or expired reset token”Cause: More than 1 hour has passed since the token was generatedSolution: Request a new password reset email via /forgot-password
Token Already Used
Error: “Invalid or expired reset token”Cause: The token was already used to reset the passwordSolution: If you need to reset your password again, request a new token via /forgot-password
Email Not Received
Possible Causes:
Email in spam/junk folder
Email address not registered in the system
Email service configuration issue
Solution: Check spam folder, verify email address, or contact support