Skip to content

Why are my API requests returning 401 Unauthorized?

Updated 20 August 2026·1 views

401 errors

Common causes:
  • Missing or invalid X-API-Key header
  • API key belongs to a different project than the one you''re calling (Hosted returns 403 for this specifically)
  • Key was revoked
Generate a fresh key from Settings → API Keys and confirm it''s attached to the correct project.

Was this article helpful?