v1

latestOpenAPI 3.0.02026-07-26492143.5 KB
Brain

Search Company Brain

Run a hybrid (semantic + keyword) search across the knowledge sources indexed in your Company Brain and return the most relevant, ranked snippets with citations.

Results are scoped to what the authenticated user can see: personal sources, plus any team and organization sources shared with them. Requires the Brain feature, which is available on the Pro and Enterprise plans. Each search consumes Gumloop credits.

post/brain/search

Request body

querystring required

The natural-language search query.

limitinteger

Maximum number of results to return.

source_typestring[] nullable

Restrict results to specific source types. Omit to search every source you can access. Valid values: notion, google_drive, slack, github, confluence, direct_file_uploads, gumloop_artifacts.

Example request

{
  "query": "what is our refund policy?",
  "limit": 8,
  "source_type": [
    "notion",
    "google_drive"
  ]
}

Response

Ranked search results.