invalid_api_keyHTTP 401Not retryable
invalid_api_key
The API key is missing, invalid, or expired.
Stable URL: https://docs.statxe.com/api/errors/invalid_api_key
How to resolve
- Send Authorization: Bearer stx_live_… (or stx_test_…) on every request.
- Confirm the key exists, is not revoked, and uses the public_api audience.
- Check for whitespace or truncation when copying the key.
Example response
{
"ok": false,
"error": {
"code": "invalid_api_key",
"message": "The API key is missing, invalid, or expired.",
"docs_url": "https://docs.statxe.com/api/errors/invalid_api_key"
},
"meta": {
"request_id": "req_example123"
}
}See also Errors & rate limits guide.