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.