Lodol Docs

Glean

API actions for the Glean integration.

Glean

Search and organize knowledge across your workplace with Glean.


Get documents

Retrieve documents including metadata for a list of Glean document IDs.

Parameters

ParameterTypeRequiredDescription
doc_idsarrayYesList of Glean document IDs to retrieve

Response

{
  "documents": [
    {
      "id": "doc123",
      "title": "Q4 Report",
      "url": "https://example.com/doc1"
    }
  ]
}

Search documents

Search for documents across your workplace using Glean.

Parameters

ParameterTypeRequiredDescription
querystringYesSearch query string
page_sizenumberNoMaximum number of results to return

Response

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

Submit feedback

Report a client UI event (e.g. click, view) on a search result to improve Glean search relevance.

Parameters

ParameterTypeRequiredDescription
eventstringYesEvent type, e.g. CLICK, VIEW, UPVOTE, DOWNVOTE, MANUAL_FEEDBACK
tracking_tokensarrayYesServer-generated tracking tokens from the search response
categorystringNoOptional feature category, e.g. SEARCH, CHAT, ANNOUNCEMENTS

Response

{
  "event": "CLICK",
  "status": "success"
}

On this page