Get the knowledge graph

http
POST /projects/{project_reference}/knowledge/graph

Get knowledge graph.

Parameters

NameInRequiredDescription
project_referencepathYesProject whose knowledge is selected. Ordinary callers require project.knowledge.read. A run-bound MCP service credential instead must match the persisted run's project and agent plus its actor or runtime transport binding; its effective sealed authority must grant the invoked tool and a knowledge selector. On project-scoped MCP endpoints, the scoped project supplies this value when omitted.

Request body

FieldTypeRequiredDescription
lookup_targetOptional. Omit to search the main preview branch (the default). Set this to target another preview branch, a deployed environment, or a published release; unresolved targets are returned as not found.
caller_selectorCaller-selected document scope. Source membership and server-trusted knowledge policy are intersected with this selector before pagination; denied nodes, edges, broken-link labels and counts are filtered.
root_file_version_idstring
root_pathstring
max_depthintegerLink hops from the root, 0 to 3; omit the root to read the whole visible set. Responses over 512 KiB fail with a size limit (REST 413, MCP PAYLOAD_TOO_LARGE). Narrow the graph with root_path, max_depth, filters or pagination.limit (GraphQL rootPath, maxDepth, filters or pagination.limit).
filtersobject
paginationobject

Responses

StatusDescription
200Authorized knowledge graph neighborhood.
400Invalid request
401Unauthorized
403Forbidden
404Project or content target not found
413The graph response exceeds 512 KiB
500Internal error