cURL
curl --request GET \ --url https://api.memoclaw.com/v1/memories/{id}/graph
{ "root": { "id": "<string>", "content": "<string>", "importance": 123 }, "nodes": [ {} ], "edges": [ { "source_id": "<string>", "target_id": "<string>", "relation_type": "<string>" } ], "depth": 123 }
GET /v1/memories//graph — Traverse the memory knowledge graph.
2
5
50
200
related_to
derived_from
contradicts
supersedes
supports
Show Memory object
Show Edge object
curl "https://api.memoclaw.com/v1/memories/550e8400-e29b-41d4-a716-446655440000/graph?depth=2" \ -H "Authorization: Bearer <token>"
{ "root": { "id": "550e8400-e29b-41d4-a716-446655440000", "content": "User prefers dark mode", "importance": 0.8 }, "nodes": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "content": "User prefers dark mode", "importance": 0.8 }, { "id": "660e8400-e29b-41d4-a716-446655440001", "content": "Dark mode saves battery", "importance": 0.5 }, { "id": "770e8400-e29b-41d4-a716-446655440002", "content": "User uses vim keybindings", "importance": 0.7 } ], "edges": [ { "source_id": "550e8400-e29b-41d4-a716-446655440000", "target_id": "660e8400-e29b-41d4-a716-446655440001", "relation_type": "supports" }, { "source_id": "550e8400-e29b-41d4-a716-446655440000", "target_id": "770e8400-e29b-41d4-a716-446655440002", "relation_type": "related_to" } ], "depth": 2 }