v1

latestOpenAPI 3.1.0MIT2026-07-173438118.7 KB
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

newPasswordstring required

New password (minimum 8 characters)

tokenstring required

Password reset token

userIdstring uuid required

User ID associated with the reset token

Example request

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

Response

Password reset successful

messagestring required

Password reset confirmation message

Example response

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