unauthorized: Invalid API key

Havoptic API error unauthorized (HTTP 401, Invalid API key): You sent an API key that is unknown or revoked. What it means and how to fix it.

FieldValue
typehttps://www.havoptic.com/docs/errors/unauthorized
HTTP status401
titleInvalid API key
Returned byapi.havoptic.com

What it means

A request that carries a key is checked against it. A bad key is rejected with 401; it is never silently downgraded to the anonymous tier, so a typo cannot hide behind lower limits.

Common causes

How to fix it

Example response

{
  "type": "https://www.havoptic.com/docs/errors/unauthorized",
  "title": "Invalid API key",
  "status": 401,
  "detail": "The API key is unknown or revoked. Omit it to use the anonymous tier, or create one at https://www.havoptic.com/api-keys."
}

All errors

Developer docs · API reference · OpenAPI · Havoptic