Agents API
The Agents API lets you discover Glean agents, inspect their input and output schemas, and execute agent runs. Use it to embed Glean's agentic capabilities directly into your own applications and workflows.
Use Cases
Agent Discovery
Schema Inspection
Agent Execution
API Endpoints
GET /api/admin/agents lists every agent in the workspace, including private and disabled agents. It is experimental. Send X-Glean-Include-Experimental: true on each request, or it is not exposed.
For per-user integrations, authenticate with OAuth. The Platform API authentication guide covers the Glean OAuth Authorization Server and external-IdP options. Use a Glean-issued token for global permissions with X-Glean-ActAs, or when no OAuth path exists.
For error responses, see Platform API Errors for the shared ProblemDetail code reference and remediation guidance.