Endpoints
Get full metagraph
GET /systems/{system_id}/metagraph
Returns all entities and relationships for a system in a single response.
Example request:
Example response:
List entities
GET /systems/{system_id}/entities
Query parameters:
Example request:
Get an entity
GET /systems/{system_id}/entities/{entity_id}
Example request:
Entity object
Entity types:
List relationships
GET /systems/{system_id}/relationships
Query parameters:
Example request:
Get a relationship
GET /systems/{system_id}/relationships/{relationship_id}
Example request:
Relationship object
Relationship types:
Batch save
POST /systems/metagraphs/{system_id}/batch-save
Create, update, or delete multiple entities and relationships in a single request. This is the recommended way to mutate the metagraph because it correctly increments the version number.
Request body:
Entity create fields:
Entity update fields:
Relationship create fields:
Relationship update fields:
CONTAINS relationships cannot be created via relationship_creates. Instead, set parent_ids on the child entity in creates — Atlas will generate the CONTAINS edge automatically.
Example response:
Set entity memories
PUT /systems/{system_id}/entities/{entity_id}/memories
Replaces memory content for an entity. Writes are versioned automatically.
Request body:
Example request:
Example response:
Get entity memory history
GET /systems/{system_id}/entities/{entity_id}/memories/history
Returns all previous versions of an entity’s memory document.
Example request:
Example response:
Restore entity memory version
POST /systems/{system_id}/entities/{entity_id}/memories/restore
Rolls back an entity’s memory to a previous version. Creates a new version entry rather than overwriting history.
Request body:
Example request:

