Skip to main content
GET
/
api
/
v1
/
memory

Search Memory

curl -X GET "http://localhost:8001/api/v1/memory/search?q=AI+trends" \
  -H "X-API-Key: your-api-key"

Response

200 Success
{
  "results": [
    {
      "id": "mem_abc123",
      "content": "AI trends research findings...",
      "agent": "researcher",
      "createdAt": "2025-10-31T12:15:00Z",
      "relevance": 0.95
    }
  ],
  "total": 15
}

Store in Memory

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"}
  }'

Get Memory Stats

curl -X GET http://localhost:8001/api/v1/memory/stats \
  -H "X-API-Key: your-api-key"

Response

200 Success
{
  "totalEntries": 1234,
  "byAgent": {
    "researcher": 800,
    "coder": 434
  },
  "storageSize": "15.2 MB"
}

Next Steps