Platform API Authentication
Platform API requests use a bearer credential in the Authorization header. Platform API supports the same customer-facing authentication methods as Client API: Glean OAuth Authorization Server tokens, OAuth access tokens issued by a configured external identity provider, and Glean-issued API tokens.
Request header
Authorization: Bearer <platform_token>
Choose an authentication method
Glean OAuth Authorization Server
Use Glean's OAuth Authorization Server for OAuth access tokens and fine-grained Glean scopes. This is the recommended OAuth path for new integrations.
External IdP OAuth
Use OAuth access tokens issued by a configured identity provider such as Google, Microsoft Entra ID, Okta, or OneLogin.
Glean-issued tokens
Use user-scoped or global bearer tokens created in the Glean Admin Console. Global tokens also require X-Glean-ActAs.
Quick start
- Confirm that your application has access to the Platform API.
- Obtain a Platform bearer credential through the appropriate flow.
- Store the credential securely and provide it in the
Authorizationheader. - Try the Platform API Quickstart.
Platform API and Client API use the same customer-facing authentication methods. Indexing API operations use Glean-issued tokens and do not accept OAuth. Follow the method-specific setup and scope requirements for the endpoint you are calling.