ReferenceKnowledge graph

Traverse from an entity

Walks outward from an entity.

max_hops is clamped to 1–6 — deep traversals on a dense graph are expensive and rarely more useful than a focused query.

GET
/api/v1/memory/graph/explore/{entity_id}

Authorization

x-api-key<token>

A platform key (ck_live_…) — reaches every memory in the tenant.

In: header

Path Parameters

entity_id*string

Query Parameters

max_hops?integer
Range1 <= value <= 6
Default2
relationship_types?array<string>

Response Body

application/json

curl -X GET "https://example.com/api/v1/memory/graph/explore/ent_acme_corp?relationship_types=WORKS_AT&relationship_types=MENTIONED_IN"
{  "nodes": [    {      "entity_id": "string",      "name": "string",      "type": "string",      "attributes": {},      "community_id": 0,      "centrality": 0.1,      "document_count": 0    }  ],  "edges": [    {      "source": "string",      "target": "string",      "type": "string",      "weight": 0.1    }  ]}
Was this page helpful?
Report an issue