Semantic Endpoints

Manage entities and relationships in the knowledge graph. Semantic memory stores structured facts as entities connected by typed relationships, enabling agents to reason over domain knowledge.

Overview

The semantic API provides endpoints for managing entities (nodes) and relationships (edges) in the knowledge graph. Entities have a type, name, and properties. Relationships connect two entities with a labeled edge and optional properties.

MethodEndpointDescription
POST/v1/entitiesCreate a new entity
GET/v1/entitiesList entities
GET/v1/entities/:idGet a specific entity
PUT/v1/entities/:idUpdate an entity
DELETE/v1/entities/:idDelete an entity
POST/v1/entities/searchSearch entities
POST/v1/relationshipsCreate a relationship
GET/v1/relationshipsList relationships
DELETE/v1/relationships/:idDelete a relationship

Create Entity

List Entities

Get Entity

Update Entity

Delete Entity

Cascading delete

Deleting an entity also removes all relationships connected to it. Make sure you understand the impact before deleting entities that are heavily connected in the graph.

Search Entities

Create Relationship

List Relationships

Delete Relationship

Rekall
rekall