Lodol Docs

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

ParameterTypeRequiredDescription
document_idsarrayYesThe 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

ParameterTypeRequiredDescription
querystringYesWhat to search for
page_sizenumberNoMaximum number of results to return

Response

{
  "hasMoreResults": false,
  "query": "quarterly report",
  "results": [
    {
      "title": "Q4 Report",
      "url": "https://example.com/doc1"
    }
  ]
}

On this page