REST API Reference
All endpoints require a Bearer token. Get your token from the dashboard.
# Base URL
https://api.agent-memo.ai
# Authentication header
Authorization: Bearer YOUR_API_KEY
Memories
/api/memoriesList memories with optional filters
Query: ?topic=&type=&importance=&limit=&offset=
/api/memoriesCreate a new memory
{ "content": "...", "type": "project", "topic": "auth", "importance": 2, "tags": ["decision"] }/api/memories/:idGet a single memory by ID
/api/memories/:idUpdate an existing memory
{ "content": "updated content", "importance": 3 }/api/memories/:idDelete a memory
/api/memories/searchSemantic search across memories
{ "query": "database choice", "type": ["project"], "limit": 5 }/api/memories/topicsList all topics with memory counts
/api/memories/check-duplicateCheck for semantic duplicates before storing
{ "content": "...", "threshold": 0.92 }Knowledge Graph
/api/kg/addAdd an entity relationship (fact)
{ "subject": "auth-service", "predicate": "uses", "object": "JWT", "confidence": 0.95 }/api/kg/queryQuery entity relationships
{ "entity": "auth-service", "direction": "outgoing" }/api/kg/invalidateInvalidate a fact (mark as no longer true)
{ "factId": "..." }/api/kg/timelineView timeline of facts for an entity
{ "entity": "auth-service" }/api/kg/statsKnowledge graph statistics
Response format
All responses are JSON. Successful responses return the data directly. Errors return a JSON object with an error field.
Success (200)
{
"id": "abc-123",
"content": "Use PostgreSQL",
"type": "project",
"topic": "database",
"importance": 3,
"created_at": "2026-04-08T..."
}Error (4xx/5xx)
{
"error": "Memory not found"
}Rate limits
During beta, there are no enforced rate limits. Be a good citizen — typical usage is well under 100 requests/minute. Rate limiting will be introduced with paid tiers.