Glean
API actions for the Glean integration.
Glean
Search across your company's documents and workplace apps with Glean.
Get document details
Retrieve the full details and contents of specific documents using their Glean document IDs (for example, the IDs returned by a Glean search).
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
document_ids | array | Yes | The Glean document IDs to look up. You can get these from the results of a Glean search. |
Response
{
"documents": [
{
"id": "doc123",
"title": "Q4 Report",
"url": "https://example.com/doc1"
}
]
}Search documents
Search for documents across your workplace using Glean.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | What to search for |
page_size | number | No | Maximum number of results to return |
Response
{
"hasMoreResults": false,
"query": "quarterly report",
"results": [
{
"title": "Q4 Report",
"url": "https://example.com/doc1"
}
]
}