Authentication Required
Code
code:authentication_requiredstatus:401url:https://developers.glean.com/errors/authentication-required
What It Means
The API request did not include valid authentication credentials.
Common Causes
- The
Authorizationheader 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
Authorizationheader. - 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"
}