Skip to main content
GET
Search memories

Authorizations

X-API-Key
string
header
required

API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.

Query Parameters

query
string
required

Natural language search query. Use full sentences for best results.

Maximum string length: 1000
limit
integer
default:5

Maximum number of results to return.

Required range: 1 <= x <= 10
category
enum<string>

Filter results to a single category.

  • preference - User likes or dislikes (e.g. "prefers dark mode").
  • fact - Objective information (e.g. "uses macOS").
  • decision - Choices made (e.g. "chose the new billing provider").
  • context - Background information (e.g. "working on e-commerce app").
Available options:
preference,
fact,
decision,
context
scope
string

Hard isolation boundary. When provided, search runs only inside that scope. Omit to search only unscoped/global memories.

Maximum string length: 200
project
string

Filter results to a specific project within the selected scope.

threshold
number

Search strictness. Higher values return broader matches. Use 0.6 as the default unless you have tested a different value.

Required range: 0 <= x <= 1

Response

200 - application/json

Ranked search results.

found
integer
required

Number of results returned.

memories
object[]
required