Skip to main content
POST
/
v1
/
memory
/
search
Search memories
curl --request POST \
  --url http://localhost:8000/v1/memory/search \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "alice",
  "query": "dark mode",
  "top_k": 10
}
'
{
  "results": [
    {
      "memory_id": "mem_3f7a1c2d9e4b",
      "content": "I prefer dark mode and short answers.",
      "category": "preference",
      "score": 0.94
    }
  ]
}

Body

application/json
user_id
string
required
query
string
required

Semantic search query.

app_id
string | null
workspace_id
string | null
agent_id
string | null
top_k
integer
default:10

Number of results to return.

category
enum<string> | null

Filter by memory category: preference, fact, instruction, event, or entity.

Available options:
preference,
fact,
instruction,
event,
entity

Response

200 - application/json

List of matching memories with similarity scores

results
object[]