Skip to main content

OAuth Clients API

The Platform OAuth Clients API lists the static OAuth clients that admins created for the workspace.

Use Cases

Client Inventory

List the static OAuth clients in the workspace, ordered by display name. Inactive clients are left out unless you filter for them.

Usage Limit Targets

Find the ID to use when you set a usage limit for a client. Send the client's ai_gateway.usage_client_id to the usage APIs, not its client_id.

API Endpoints

The list leaves out dynamically registered clients and Glean's own clients, such as Glean Desktop. To set a usage limit for a client, use its ai_gateway.usage_client_id.

Requests need the admin.oauth.clients:read scope, and the caller needs admin read or billing read permission.

These endpoints are experimental. Send X-Glean-Include-Experimental: true on each request, or they are not exposed.

For error responses, see Platform API Errors for the shared ProblemDetail code reference and remediation guidance.