Docs
← chronapilot.com v 2026-05-12

authentication_failed

Errors · authentication_error

HTTP 401 · type authentication_error

Missing or invalid API key.

When it fires

The Authorization header is missing, malformed, or the key doesn't exist (revoked, deleted, or never issued).

Recovery

Double-check the key. Test keys (sk_test_) only work against api-sandbox; live keys (sk_live_) against api.chronapilot.com.

Example response

JSON
{
  "error": {
    "type": "authentication_error",
    "code": "authentication_failed",
    "message": "Missing or invalid API key.",
    "doc_url": "https://docs.chronapilot.com/errors/authentication-failed",
    "request_id": "req_1A2b3C4d5E6f"
  }
}