Glean Client API
Interact with the Glean Client API to search, get autocomplete suggestions, chat with Glean AI, and retrieve recommendations.
Overview
Use the Glean Client API connector to interact with your organization’s Glean deployment from Tray workflows.
Supported operations
The connector currently ships with the following operations:
- Search: Retrieve results from the index for the given query and filters
- Autocomplete: Get autocomplete suggestions for a partially typed query
- Chat: Have a conversation with Glean AI
- Recommendations: Get personalized content recommendations
API Information
- Base URL:
https://{instance}-be.glean.com - Auth:
Authorization: Bearer {api_token}
For endpoint details and token guidance, see Glean’s docs:
Authentication
Create a new authentication for the connector and provide:
- Glean Client API Token: A Glean Client API token used as a Bearer token.
- Glean Instance: Your Glean tenant identifier used to form the base URL.
The connector builds requests like:
https://{instance}-be.glean.com/...
For example, if your backend host is company-be.glean.com, your Instance is company.
Notes on usage
- Pagination: Some operations return a
cursor; pass it back in subsequent calls to page results. - Raw HTTP: This connector enables Tray’s Raw HTTP operation, which will use the same base URL + Bearer token headers for calling additional Glean endpoints not covered by the typed operations.