Skip to content
opis.Nutrition API

← All error codes

unauthorized

Unauthorized · HTTP 401

What it means

The Authorization header is missing, or the API key is unknown, revoked or expired.

What to do

Send Authorization: Bearer <key> with an active key of the right mode.

Example

{
  "type": "https://platform.opis.health/docs/errors/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "…",
  "code": "unauthorized",
  "request_id": "req_01k68a9nytdxx0x5x0p47zgrm8"
}