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/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/*`).