Auth

Reset password

Errors

Returns an error if token is invalid, password validation fails, or database operations fail.

post/api/auth/reset-password

Request body

new_passwordstring required

New password (minimum 8 characters)

tokenstring required

Password reset token

user_idstring uuid required

User ID associated with the reset token

Example request

{
  "new_password": "newpassword123",
  "token": "550e8400-e29b-41d4-a716-446655440000",
  "user_id": "d290f1ee-6c54-4b01-90e6-d701748f0851"
}

Response

Password reset successful

messagestring required

Password reset confirmation message

Example response

{
  "message": "Password has been reset successfully"
}

Changes