Automotion docs

UNAUTHORIZED

The request is missing a valid API key.

HTTP status: 401

What it means

The request is missing a valid API key.

Why it happens

  • The Authorization header is missing or malformed (expected Authorization: Bearer am_live_...).
  • The API key does not exist, was revoked, or its owner was deleted.

How to fix it

  • Send Authorization: Bearer <your API key> on every request.
  • Create or roll keys in the dashboard; keys are shown once at creation.
  • The response is identical for every failure mode by design — it never reveals whether a key exists.

Example

Every non-2xx response uses the same envelope; path (when present) is the exact JSON path of the offending field, and requestId identifies the request in support conversations:

response.json
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Missing or invalid API key. Pass \"Authorization: Bearer am_...\" with a valid key.",
    "docsUrl": "https://automotion.dev/docs/errors/unauthorized"
  },
  "requestId": "req_0123456789abcdef0123456789abcdef"
}

See the error index for the full catalog and the API overview for envelope semantics.

On this page