Skip to main content

Authentication API

The Authentication API provides secure token-based authentication for accessing Glean's APIs. It enables you to create and manage authentication tokens that authorize your applications to interact with Glean services on behalf of users.

Use Cases

API Access Control

Generate secure authentication tokens to authorize your applications and services to access Glean APIs with proper user permissions.

Service Integration

Enable third-party applications and internal services to securely integrate with Glean using token-based authentication.

User Authorization

Create user-specific tokens that respect individual permissions and access controls within your organization.

API Endpoints

MethodEndpointPurpose
POST/rest/api/v1/checkdatasourceauthCheck datasource authorization
Returns all datasource instances that require per-user OAuth authorization for the authenticated user, along with a transient auth token that can be appended to auth URLs to complete OAuth flows. Clients construct the full OAuth URL by combining the backend base URL, the `authUrlRelativePath` from each instance, and the transient auth token: `<backend>/<authUrlRelativePath>?transient_auth_token=<token>`.
POST/rest/api/v1/createauthtokenCreate authentication token
Creates an authentication token for the authenticated user. These are specifically intended to be used with the [Web SDK](https://developers.glean.com/web). Note: The tokens generated from this endpoint are **not** valid tokens for use with the Client API (e.g. `/rest/api/v1/*`).