Query and manage agent memory
curl -X GET "http://localhost:8001/api/v1/memory/search?q=AI+trends" \ -H "X-API-Key: your-api-key"
{ "results": [ { "id": "mem_abc123", "content": "AI trends research findings...", "agent": "researcher", "createdAt": "2025-10-31T12:15:00Z", "relevance": 0.95 } ], "total": 15 }
curl -X POST http://localhost:8001/api/v1/memory \ -H "Content-Type: application/json" \ -H "X-API-Key: your-api-key" \ -d '{ "content": "Important information to remember", "metadata": {"source": "research", "category": "AI"} }'
curl -X GET http://localhost:8001/api/v1/memory/stats \ -H "X-API-Key: your-api-key"
{ "totalEntries": 1234, "byAgent": { "researcher": 800, "coder": 434 }, "storageSize": "15.2 MB" }
Was this page helpful?