Skip to main content
Status: 401 Unauthorized
Code:   UNAUTHORIZED
Type:   https://docs.bedrock.cv/errors/authentication

Description

The request does not include a valid API key. All API requests must include an Authorization: Bearer header or an X-API-Key header.

Example

{
  "type": "https://docs.bedrock.cv/errors/authentication",
  "title": "Missing or invalid API key",
  "status": 401,
  "detail": "Provide a valid API key via the Authorization: Bearer or X-API-Key header.",
  "code": "UNAUTHORIZED",
  "request_id": "req_01JABCD123"
}

Common Causes

  • Missing Authorization or X-API-Key header
  • Revoked or expired API key
  • Malformed key value

Resolution

Include a valid API key in the Authorization: Bearer header (preferred) or the X-API-Key header. You can create and manage keys in Developer Settings.