POST /api/auth/forgot-password
Generates a password reset token and sends it to the user’s email address.Authentication
No authentication required.Request Body
Valid email address associated with the account.
Request Example
Response
Instructions message to check email.
Success Response (200 OK)
Error Responses
404 Not Found - User Does Not Exist
400 Bad Request - Validation Errors
cURL Example
Notes
- Generates a new 6-digit token for the user
- Sends password reset email with the token
- Token is stored in the user’s record for validation
- Rate limiting is applied to this endpoint
- Use the token with the
/reset-password/:tokenendpoint to complete the reset