When using Claude, you may run into various error messages on the web login page or during API calls. This article breaks down the most frequent error types with real-world scenarios and manual fixes, so you can restore your conversation or API service fast.
Login Failure: “Invalid credentials” or “Account locked”
If you enter the correct email and password but still see “Invalid credentials,” it’s usually because multiple incorrect password attempts have triggered a temporary lockout. Wait 15–30 minutes and try again, or use the “Forgot password” option to reset your password.
If the error says “Account locked” and you just signed up, your email verification might not be complete. Check your inbox (and spam folder) for the Claude verification email, then click the link to activate your account. Some corporate email servers block verification messages, so using Gmail or Outlook is recommended.
API Request Returns “401 Unauthorized”
This error almost always means your API key is invalid or not sent correctly. First, double‑check that your request header includes Authorization: Bearer YOUR_API_KEY. If the key was generated just now, it may take a few minutes to sync.
Also, Claude API keys come in project‑level and user‑level variants—mixing them results in a 401 error. Verify the permissions associated with your key and make sure you’re using the correct endpoint. For example, the chat/completions endpoint requires specific access rights.


