Indexing API
The Indexing API makes content from internal tools, on-premises systems, and custom applications searchable in Glean. Use it to manage datasources, index content, apply permissions, and keep search results current.
Start here
Quickstart
Create a datasource and index your first document.
Authentication
Create and configure an Indexing API token.
API Reference
Browse Indexing API endpoints by capability.
Indexing workflow
Create a datasource
Set up a datasource to organize the content you want Glean to discover. Follow the datasource setup guide.
Index content
Index content with the Documents, People, and Permissions references.
Apply permissions
Index permissions and validate document access so users only see content they are authorized to view.
Validate and troubleshoot
Use the Indexing API Quickstart and the troubleshooting guides in the sidebar to verify your datasource and indexed content.
Indexing API reference
Datasources
Create, configure, and manage the datasources that hold your content.
Documents and data
Index documents individually or in bulk, then update and remove them as content changes.
People
Index employees and teams used by Glean's people directory and retrieval experiences.
Permissions
Index users, groups, and memberships that control access to indexed content.
Cross-datasource enrichment
Custom Metadata is grouped with Indexing API guidance because it enriches indexed content and uses Glean-issued credentials, but it uses the distinct /rest/api/index/custom-metadata/... base path. It can attach metadata to documents from any datasource, including native connectors, without re-indexing the source document.