Skip to main content
POST
/
v1
/
memory
/
recall
Recall memory context
curl --request POST \
  --url http://localhost:8000/v1/memory/recall \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "alice",
  "app_id": "my_app",
  "workspace_id": "team_1",
  "query": "How should I format my answers?",
  "top_k": 5
}
'
{
  "context": "alice prefers dark mode and short answers.",
  "paths": 2,
  "knowledge": []
}

Body

application/json
user_id
string
required

User to recall memory for.

query
string
required

Natural-language query to find relevant memories.

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

Maximum number of paths to return.

Response

200 - application/json

Recalled context and matching paths

context
string

Formatted context string ready to inject into an LLM prompt.

paths
integer

Number of supporting memory paths found.

knowledge
string[]

Matching knowledge base chunks, if any.