Skip to main content

POST /api/memory/search

Search indexed memories with hybrid BM25 + semantic search.
curl -X POST http://localhost:4360/api/memory/search \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"query": "eval scripts", "limit": 5}'

POST /api/memory/add

Add a memory manually.
curl -X POST http://localhost:4360/api/memory/add \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"title": "My insight", "content": "Details...", "type": "discovery"}'

GET /api/memory/status

Memory system health and stats.
curl http://localhost:4360/api/memory/status \
  -H "Authorization: Bearer $TOKEN"

POST /api/memory/index

Trigger reindex and embedding backfill.
curl -X POST http://localhost:4360/api/memory/index \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"backfill": true}'

POST /api/memory/link

Add a graph edge between two memories.
curl -X POST http://localhost:4360/api/memory/link \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"from": 42, "to": 17, "type": "updates"}'
updates | contradicts | related_to | caused_by | part_of