Skip to main content
GET
https://api.memcontext.in
/
api
/
company-brain
/
search
Search context vault
curl --request GET \
  --url https://api.memcontext.in/api/company-brain/search \
  --header 'X-API-Key: <api-key>'
{
  "found": 123,
  "chunks": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "sourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "sourceType": "<string>",
      "sectionPath": "<string>",
      "scope": "<string>",
      "project": "<string>",
      "chunkIndex": 123,
      "content": "<string>",
      "contextualContent": "<string>",
      "relevance": 123,
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ],
  "memories": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "content": "<string>",
      "category": "<string>",
      "scope": "<string>",
      "project": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "evidence": [
        {
          "sourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "chunkId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "quote": "<string>",
          "confidence": 123,
          "title": "<string>",
          "sectionPath": "<string>",
          "chunkIndex": 123
        }
      ]
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key created from the MemContext dashboard. Keys are prefixed with mc_.

Query Parameters

workspaceId
string<uuid>
required
query
string
required
Maximum string length: 1000
mode
enum<string>
default:hybrid
Available options:
memories,
documents,
hybrid
scope
string

Search one hard lane inside the workspace. Omit when using scopes.

Maximum string length: 200
scopes
string

Comma-separated scopes for multi-scope retrieval, for example dev,billing. Takes precedence over scope.

Maximum string length: 1000
project
string
Maximum string length: 100
limit
integer
default:8
Required range: 1 <= x <= 20

Response

200 - application/json

Company brain search results.

Ranked Context Vault retrieval results. chunks contains source document passages; memories contains extracted atomic facts with citation evidence or curated company facts. Hybrid mode returns these as separate arrays instead of a single merged list so callers can build downstream context blocks: source documents, extracted memories, and curated company facts. This response intentionally does not include a synthesized answer.

mode
enum<string>
required
Available options:
memories,
documents,
hybrid
found
integer
required
chunks
object[]
required

Source document chunks/passages. Empty when mode is memories.

memories
object[]
required

Extracted atomic memories with source evidence. Empty when mode is documents.