invalid_api_key
The key does not match any active key. It may be mistyped, truncated, or belong to a different environment — test keys and live keys are not interchangeable.
| Code | Type | HTTP | Category |
|---|---|---|---|
invalid_api_key | authentication_error | 401 | Authentication |
Cause
The key does not match any active key. It may be mistyped, truncated, or belong to a different environment — test keys and live keys are not interchangeable.
What to do
Copy the key again from the dashboard and check the environment: fact_test_ keys only work in test mode, fact_live_ keys only in production.
Message returned by the API
Invalid API key.
Related
All Authentication error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.