Memory Relations
API Reference
Memory Relations
CRUD operations for memory relationships — link memories together.
POST
Memory Relations
Price: FREE
Relations let you create explicit links between memories. Use them to build knowledge graphs, track contradictions, or group related facts.
Relation Types
| Type | Description |
|---|---|
related_to | General relationship between related memories |
derived_from | Memory was derived/synthesized from another (e.g. consolidation) |
contradicts | Memories that conflict (useful for tracking corrections) |
supersedes | New memory replaces old one |
supports | Memory provides supporting evidence for another |
POST /v1/memories/:id/relations
Create a relationship from one memory to another.Path Parameters
Source memory UUID.
Request Body
Target memory UUID to link to.
One of:
related_to, derived_from, contradicts, supersedes, supports.Optional metadata for the relationship.
Example
Response
GET /v1/memories/:id/relations
List all relationships for a memory (both incoming and outgoing).Path Parameters
Memory UUID.
Example
curl
Response
DELETE /v1/memories/:id/relations/:relationId
Remove a relationship.Path Parameters
Memory UUID.
Relation UUID to delete.
Example
curl
Response