http
POST /projects/{project_reference}/knowledge/graphGet knowledge graph.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
project_reference | path | Yes | Project 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
| Field | Type | Required | Description |
|---|---|---|---|
lookup_target | Optional. 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_selector | Caller-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_id | string | ||
root_path | string | ||
max_depth | integer | Link 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). | |
filters | object | ||
pagination | object |
Responses
| Status | Description |
|---|---|
| 200 | Authorized knowledge graph neighborhood. |
| 400 | Invalid request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Project or content target not found |
| 413 | The graph response exceeds 512 KiB |
| 500 | Internal error |