REST API Reference

All endpoints require Authorization: Bearer <key> when authentication is enabled.

Base URL — Replace localhost:3300 with your server's address (e.g. http://<YOUR_SERVER_IP>:3300). All routes versioned under /v1/.

Health

MethodPathAuthDescription
GET/healthNoReturns server status and version
GET/metricsNoPrometheus metrics

Memory

MethodPathDescription
POST/v1/memory/storeStore a memory
POST/v1/memory/recallSemantic recall
POST/v1/memories/recall/batchFilter-based batch recall
GET/v1/memory/get/{id}Get memory by ID
PUT/v1/memory/update/{id}Update memory content, importance, or tags
POST/v1/memory/forgetDelete (forget) a memory

Store memory — request body

{
  "agent_id": "my-agent",                  // required
  "content": "User prefers dark mode",       // required
  "importance": 0.8,                         // optional, 0.0–1.0, default 0.5
  "tags": ["preference", "ui"],             // optional
  "session_id": "sess-abc123",              // optional
  "memory_type": "episodic"                  // episodic | semantic | procedural | working
}

Recall — request body

{
  "agent_id": "my-agent",                  // required
  "query": "UI preferences",                // required
  "top_k": 10,                               // optional, default 10
  "min_importance": 0.5,                    // optional filter
  "tags": ["preference"],                    // optional filter
  "session_id": "sess-abc123"               // optional: scope to session
}

Sessions

MethodPathDescription
POST/v1/sessions/startStart a session
GET/v1/sessions/:idGet session by ID
POST/v1/sessions/{id}/endEnd a session
GET/v1/sessions/:id/memoriesGet all memories from a session
GET/v1/agents/:id/sessionsList all sessions for an agent

Batch & advanced memory

MethodPathDescription
POST/v1/memories/recall/batchFilter-based batch recall (no semantic query)
DELETE/v1/memories/forget/batchBulk forget by filter predicates
POST/v1/memory/searchSearch with tag and type filters
POST/v1/memory/importanceBatch-update importance scores
POST/v1/memory/consolidateMerge related memories into summary
POST/v1/memories/{id}/feedbackSubmit feedback signal (upvote/downvote/flag)
GET/v1/memories/{id}/feedbackGet feedback history for a memory
PATCH/v1/memories/{id}/importancePatch importance for a single memory

Agents

MethodPathDescription
GET/v1/agentsList all agents
GET/v1/agents/{id}/memoriesList agent memories
GET/v1/agents/{id}/statsAgent statistics (memory count, storage, top tags)
GET/v1/agents/{id}/sessionsList agent sessions
GET/v1/agents/{id}/wake-upGet wake-up context (unread memories since last session)
POST/v1/agents/{id}/consolidateConsolidate agent memories
POST/v1/agents/{id}/compressCompress agent memory
GET/v1/agents/{id}/consolidation/logConsolidation history log
PATCH/v1/agents/{id}/consolidation/configUpdate consolidation config

Feedback

MethodPathDescription
GET/v1/agents/{id}/feedback/summaryAggregated feedback stats for an agent
GET/v1/feedback/healthSystem-wide feedback quality metrics

Vectors

MethodPathDescription
POST/v1/namespaces/{ns}/vectorsUpsert vectors
POST/v1/namespaces/{ns}/queryANN vector similarity search
POST/v1/namespaces/{ns}/vectors/deleteDelete vectors by ID
POST/v1/namespaces/{ns}/vectors/bulk-updateBulk-update metadata by filter
POST/v1/namespaces/{ns}/vectors/bulk-deleteBulk-delete vectors by filter
POST/v1/namespaces/{ns}/vectors/countCount vectors (with optional filter)
POST/v1/namespaces/{ns}/batch-queryBatch vector queries in parallel
POST/v1/namespaces/{ns}/multi-vectorMulti-vector search with MMR diversity
POST/v1/namespaces/{ns}/unified-queryFlexible ranking (vector, text, or attribute)
POST/v1/namespaces/{ns}/aggregateAggregation queries (count, sum, avg, min, max)
POST/v1/namespaces/{ns}/upsert-columnsColumn-format upsert (efficient batch)
POST/v1/namespaces/{ns}/explainQuery execution plan and cost estimate
POST/v1/namespaces/{ns}/warmPre-load vectors into memory cache
POST/v1/namespaces/{ns}/cache/warmWarm namespace cache
POST/v1/namespaces/{ns}/exportExport vectors with pagination

Full-text & hybrid search

MethodPathDescription
POST/v1/namespaces/{ns}/fulltext/indexIndex documents for BM25 search
POST/v1/namespaces/{ns}/fulltext/searchBM25 full-text search
POST/v1/namespaces/{ns}/fulltext/deleteDelete from full-text index
GET/v1/namespaces/{ns}/fulltext/statsFull-text index statistics
POST/v1/namespaces/{ns}/hybridVector + BM25 hybrid search

Text inference (auto-embedding)

MethodPathDescription
POST/v1/namespaces/{ns}/upsert-textUpsert text with server-side embedding
POST/v1/namespaces/{ns}/query-textQuery by natural language text
POST/v1/namespaces/{ns}/batch-query-textBatch text queries
POST/v1/extractExtract structured info from text
POST/v1/routeSemantic query routing

Namespaces

MethodPathDescription
GET/v1/namespacesList all namespaces
POST/v1/namespacesCreate a namespace
GET/v1/namespaces/{ns}Get namespace details
PUT/v1/namespaces/{ns}Configure a namespace
DELETE/v1/namespaces/{ns}Delete a namespace
GET/v1/namespaces/{ns}/configGet entity extraction config
PATCH/v1/namespaces/{ns}/configUpdate entity extraction config
GET/v1/namespaces/{ns}/extractorGet extraction provider config
PATCH/v1/namespaces/{ns}/extractorSet extraction provider
GET/v1/namespaces/{ns}/memory_policyGet lifecycle policy
PUT/v1/namespaces/{ns}/memory_policyUpdate lifecycle policy

Namespace API keys

MethodPathDescription
POST/v1/namespaces/{ns}/keysCreate a namespace-scoped API key
GET/v1/namespaces/{ns}/keysList keys for a namespace
DELETE/v1/namespaces/{ns}/keys/{key_id}Revoke a namespace key
GET/v1/namespaces/{ns}/keys/{key_id}/usageKey usage statistics

Knowledge graph

MethodPathDescription
GET/v1/memories/{id}/graphBFS traversal from a memory
GET/v1/memories/{id}/pathShortest path between two memories
POST/v1/memories/{id}/linksCreate explicit link between memories
GET/v1/agents/{id}/graph/exportExport agent knowledge graph
GET/v1/knowledge/queryQuery KG with filter DSL
GET/v1/knowledge/pathFind paths in KG
GET/v1/knowledge/exportExport KG as JSON/GraphML

Knowledge operations

MethodPathDescription
POST/v1/knowledge/graphBuild knowledge graph from seed memory
POST/v1/knowledge/summarizeSummarize a set of memories
POST/v1/knowledge/deduplicateFind and merge duplicates
POST/v1/knowledge/graph/fullFull knowledge graph with related memories
POST/v1/knowledge/network/cross-agentCross-agent memory network

Entity extraction

MethodPathDescription
POST/v1/memories/extractExtract entities from text
GET/v1/memory/entities/{id}Get entities for a memory

Import & export

MethodPathDescription
GET/v1/exportExport all memories (JSONL, CSV, Mem0, Zep)
POST/v1/importImport memories from external format
GET/v1/import/{job_id}/statusCheck import job status

Audit & events

MethodPathDescription
GET/v1/auditQuery audit log
GET/v1/audit/streamStream audit events (SSE)
GET/v1/audit/exportExport audit log
GET/v1/events/streamStream memory lifecycle events (SSE)
GET/v1/namespaces/{ns}/eventsStream namespace events (SSE)

Analytics & operations

MethodPathDescription
GET/v1/analytics/overviewHigh-level metrics (QPS, latency, storage)
GET/v1/analytics/latencyLatency percentiles and trends
GET/v1/analytics/throughputRequest throughput by operation
GET/v1/analytics/storageStorage breakdown by namespace
GET/v1/ops/statsOperational stats
GET/v1/ops/metricsOps metrics
GET/v1/kpisProduct KPI snapshot

Admin — cluster

MethodPathDescription
GET/admin/cluster/statusCluster health, leader, shard distribution
GET/admin/cluster/nodesAll nodes with state and roles
GET/admin/cluster/replicationReplication status
GET/admin/cluster/shardsShard listing
POST/admin/cluster/shards/rebalanceTrigger shard rebalancing
GET/admin/cluster/maintenanceMaintenance mode status
POST/admin/cluster/maintenance/enableEnter maintenance mode
POST/admin/cluster/maintenance/disableExit maintenance mode

Admin — API keys

MethodPathDescription
POST/admin/keysCreate a global API key
GET/admin/keysList all API keys
GET/admin/keys/{id}Get key details
DELETE/admin/keys/{id}Delete a key
POST/admin/keys/{id}/deactivateDeactivate a key
POST/admin/keys/{id}/rotateRotate a key
GET/admin/keys/{id}/usageKey usage statistics

Admin — storage & indexes

MethodPathDescription
GET/admin/indexes/statsIndex statistics
POST/admin/indexes/rebuildRebuild indexes
GET/admin/cache/statsCache performance stats
POST/admin/cache/clearClear cache
POST/admin/cache/warmWarm cache
POST/admin/fulltext/reindexReindex full-text
GET/admin/storage/tiersStorage tier overview
POST/admin/ttl/cleanupManual TTL cleanup
GET/admin/ttl/statsTTL statistics

Admin — AutoPilot, decay & config

MethodPathDescription
GET/admin/autopilot/statusAutoPilot status and last-run stats
PUT/admin/autopilot/configUpdate AutoPilot config
POST/admin/autopilot/triggerTrigger AutoPilot cycle
GET/admin/decay/configGet decay config
PUT/admin/decay/configUpdate decay config
GET/admin/decay/statsDecay statistics
GET/admin/configGet server config
PUT/admin/configUpdate server config

Admin — quotas

MethodPathDescription
GET/admin/quotasList all quotas
GET/admin/quotas/defaultGet default quota
PUT/admin/quotas/defaultSet default quota
GET/admin/quotas/{ns}Get namespace quota
PUT/admin/quotas/{ns}Set namespace quota
DELETE/admin/quotas/{ns}Delete namespace quota

Admin — backup & recovery

MethodPathDescription
GET/admin/backupsList backups
POST/admin/backupsCreate a backup
GET/admin/backups/{id}Get backup details
DELETE/admin/backups/{id}Delete a backup
GET/admin/backups/{id}/downloadDownload backup file
POST/admin/backups/uploadUpload backup for restore
POST/admin/backups/restoreRestore from backup
GET/admin/backups/restore/{id}Get restore status
GET/admin/backups/scheduleGet backup schedule
POST/admin/backups/scheduleUpdate backup schedule

Admin — monitoring

MethodPathDescription
GET/admin/slow-queriesList slow queries
GET/admin/slow-queries/summarySlow query summary
DELETE/admin/slow-queriesClear slow query log
POST/admin/encryption/rotate-keyRotate encryption key
GET/admin/background-activityBackground task status
GET/admin/memory-type-statsMemory type distribution