Skip to main content
Use GET /api/company-brain/search to retrieve Context Vault knowledge. Search supports three modes:
ModeReturns
documentsSource chunks from ingested documents
memoriesExtracted document memories and curated company facts
hybridSource chunks, extracted document memories, and curated company facts
The endpoint returns retrieval context, not a generated final answer. Document memories include evidence when they were extracted from uploaded or scraped sources. Curated company facts can return with evidence: []; treat them as workspace-approved context rather than document-backed citations.
curl "https://api.memcontext.in/api/company-brain/search?workspaceId=WORKSPACE_ID&query=leave%20policy&scope=hr&mode=hybrid" \
  -H "X-API-Key: $MEMCONTEXT_API_KEY"
Use scopes when the answer should come from two or more hard lanes.
curl "https://api.memcontext.in/api/company-brain/search?workspaceId=WORKSPACE_ID&query=trial%20and%20billing&scopes=dev,billing&mode=hybrid" \
  -H "X-API-Key: $MEMCONTEXT_API_KEY"
When scopes is provided, it takes precedence over scope. Results are still limited to the same workspace.

Project filter

Use project to narrow results inside the selected scope or scopes.
curl "https://api.memcontext.in/api/company-brain/search?workspaceId=WORKSPACE_ID&query=refunds&scopes=billing,support&project=q3-policy" \
  -H "X-API-Key: $MEMCONTEXT_API_KEY"