Skip to main content
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


POST /v1/memories/:id/relations

Create a relationship from one memory to another.

Path Parameters

id
string
required
Source memory UUID.

Request Body

target_id
string
required
Target memory UUID to link to.
relation_type
string
required
One of: related_to, derived_from, contradicts, supersedes, supports.
metadata
object
Optional metadata for the relationship.

Example

Response

GET /v1/memories/:id/relations

List all relationships for a memory (both incoming and outgoing).

Path Parameters

id
string
required
Memory UUID.

Example

curl
Response

DELETE /v1/memories/:id/relations/:relationId

Remove a relationship.

Path Parameters

id
string
required
Memory UUID.
relationId
string
required
Relation UUID to delete.

Example

curl
Response