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

string
required
Source memory UUID.

Request Body

string
required
Target memory UUID to link to.
string
required
One of: related_to, derived_from, contradicts, supersedes, supports.
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

string
required
Memory UUID.

Example

curl
Response

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

Remove a relationship.

Path Parameters

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

Example

curl
Response