Skip to main content

Explore Graph

POST /agent/graph

Get an overview of the entire knowledge graph for a volume — all entities and their relationships.

Request​

Body:

FieldTypeRequiredDescription
volume_idstring (UUID)YesVolume ID
limitintegerNoMax entities (1–200, default: 100)

Response​

{
"volume_id": "...",
"entities": [
{
"name": "John Smith",
"type": "person",
"summary": "CTO of Acme Corp",
"factCount": 8
},
{
"name": "Acme Corp",
"type": "organization",
"summary": "Technology company",
"factCount": 5
}
],
"relationships": [
{
"source": "John Smith",
"type": "WORKS_AT",
"description": "Chief Technology Officer since 2022",
"target": "Acme Corp",
"strength": 0.95
}
]
}

Response Fields​

FieldDescription
entitiesArray of entities, ordered by fact count descending
entities[].factCountNumber of facts attached to the entity
relationshipsArray of relationships (max 200)
relationships[].strengthRelationship confidence score

Example​

curl -X POST https://api.sharedmemory.ai/agent/graph \
-H "Authorization: Bearer sm_agent_..." \
-H "Content-Type: application/json" \
-d '{
"volume_id": "a1b2c3d4-...",
"limit": 50
}'