Skip to main content
POST
/
api
/
v1
/
search
Unified semantic + keyword retrieval (mirrors the MCP search tool)
curl --request POST \
  --url https://3ngram-server-production.up.railway.app/api/v1/search \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "query": "<string>",
  "asOf": {
    "asKnownAt": "2023-11-07T05:31:56Z",
    "validAt": "2023-11-07T05:31:56Z"
  },
  "limit": 5,
  "project": "<string>",
  "scope": "<string>"
}
'
{
  "count": 4503599627370495,
  "hits": [
    {
      "content": "<string>",
      "contentLength": 4503599627370495,
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "memoryType": "<string>",
      "score": 123,
      "topic": "<string>",
      "truncated": true
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Body

application/json
query
string
required
Minimum string length: 1
asOf
object
limit
integer
default:5
Required range: 1 <= x <= 25
memoryType
enum<string>
Available options:
decision,
commitment,
blocker,
fact,
preference,
pattern,
note,
event
project
string
Required string length: 1 - 256
scope
string
Required string length: 1 - 64
Pattern: ^[a-z0-9][a-z0-9-]*$
status
enum<string>
Available options:
active,
archived

Response

200 - application/json

Success

count
integer
required
Required range: 0 <= x <= 9007199254740991
hits
object[]
required
Maximum array length: 25