Endpoint
Authentication
No authentication required.Request body
The 6-character password reset token sent to the user’s email
- Must be exactly 6 characters
- Cannot be empty
Request example
Response
Success response
Status:200 OK
Confirmation message indicating the token is valid
Error responses
Status:400 Bad Request
Returned when validation fails:
404 Not Found
Returned when the token doesn’t exist in the database:
Usage flow
This endpoint is typically used as step 2 in the password reset process:- User requests password reset via
/api/auth/forgot-password - User validates the token received via email (this endpoint)
- User submits new password via
/api/auth/reset-password/:token
Example request
cURL
This endpoint is subject to rate limiting (5 requests per minute per IP).
Related endpoints
- Forgot password - Request a password reset token
- Reset password - Complete the password reset