Skip to main content
The metagraph is Atlas’s living model of a system. Entities are the nodes (subsystems, components, interfaces, signals, and resources). Relationships are the directed edges connecting them. Together they form the structured representation Atlas reasons over. See Populating the System Metagraph for a workflow guide.

Endpoints


Get full metagraph

GET /systems/{system_id}/metagraph Returns all entities and relationships for a system in a single response. Example request:
Response fields: Example response:

List entities

GET /systems/{system_id}/entities Query parameters: Example request:
Returns an array of entity objects.

Get an entity

GET /systems/{system_id}/entities/{entity_id} Example request:
Returns a single entity object.

Entity object

Entity types:

List relationships

GET /systems/{system_id}/relationships Query parameters: Example request:
Returns an array of relationship objects.

Get a relationship

GET /systems/{system_id}/relationships/{relationship_id} Example request:
Returns a single relationship object.

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 request:
Response fields: 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:
Response fields: 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:
Response fields (array): 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:
Returns the restored memory object with the same fields as Set entity memories.