Authentication Overview
Glean's three REST API families use different authentication models. Start by choosing the API you need, then follow its implementation guide for the exact credential and scope requirements.
Finding Your Server URL
All Glean API requests require your organization's server URL. Find it in the Server instance (QE) field on the Glean About page.
Your server URL is used in API requests and API client configuration:
- Platform API:
https://<your-server-url>/api/... - Client API:
https://<your-server-url>/rest/api/v1/... - Indexing API:
https://<your-server-url>/api/index/v1/...
API authentication at a glance
Platform API
Recommended for new integrations
- Glean OAuth Authorization Server tokens
- External IdP OAuth tokens
- Glean-issued tokens
- Platform authentication guide
Client API
For existing and specialized user-facing integrations
- Glean OAuth Authorization Server
- External IdP OAuth
- Glean-issued tokens
- Client authentication guide
Indexing API
For content ingestion and management
- Glean-issued tokens only
- Datasources, documents, people, and permissions
- Indexing authentication guide
Choose an authentication path
Platform API
Platform API requests use a bearer credential in the Authorization header. Use one of the supported Platform API authentication methods described in the Platform API authentication guide.
Client API
OAuth is recommended for new Client API integrations. Use Glean-issued tokens when you need admin-managed token lifecycle, granular token control, or a server-to-server integration without OAuth. See the Client API authentication guide.
Indexing API
The Indexing API requires Glean-issued tokens. OAuth is not supported for ordinary Indexing API operations. See the Indexing API authentication guide.
Shared security practices
- Store credentials securely and never commit them to source control.
- Use environment variables or a secrets manager for application credentials.
- Use the least-privileged credential and scopes available for your integration.
- Rotate long-lived credentials and plan for expiry before production rollout.
- Handle
401,403, and rate-limit responses explicitly.
Next steps
- Choose the right API from the Glean API overview.
- Follow the API-specific authentication guide above.
- Try the API's getting-started example before building the complete integration.