Initiate password reset process by sending a reset token to the user's email address. This is the first step in the password reset flow.
POST
/api/v1/auth/send-reset-token
curl \
--request POST 'http://localhost:3500/api/v1/auth/send-reset-token' \
--header "Content-Type: application/json" \
--data '{"email":"user@university.edu"}'
Request example
Request password reset for user email
{
"email": "user@university.edu"
}
Response examples (200)
{
"message": "Password reset token sent to your email",
"success": true
}
Response examples (400)
{
"error": "Bad Request",
"message": [
"email must be an email"
],
"statusCode": 400
}
Response examples (404)
{
"error": "Not Found",
"message": "User not found",
"statusCode": 404
}