Skip to main content

Authentication Required

Code

  • code: authentication_required
  • status: 401
  • url: https://developers.glean.com/errors/authentication-required

What It Means

The API request did not include valid authentication credentials.

Common Causes

  • The Authorization header is missing.
  • The token is malformed or not recognized.
  • The request is being sent to the wrong backend domain for the token.

How To Resolve

Client Actions

  • Include a valid bearer token in the Authorization header.
  • Confirm the token belongs to the Glean instance receiving the request.

Admin Actions

  • Create or rotate API tokens from the appropriate admin console workflow.

Retry Guidance

Retry after supplying valid credentials.

Example Response

{
"type": "https://developers.glean.com/errors/authentication-required",
"title": "Authentication Required",
"status": 401,
"detail": "Human-readable explanation specific to this occurrence.",
"code": "authentication_required",
"documentation_url": "https://developers.glean.com/errors/authentication-required",
"request_id": "req_7f8a9b0c1d2e"
}