Get the neighbourhood of one node.
GET/api/v1/graph/neighbourhoodgraph:read
The nodes and edges within depth hops of a node. node is a document key (D:<document_id>).
| Scope | graph:read |
| Asynchronous | No |
| MCP tool | get_graph_neighbourhood |
| Portal permissions | view_graph_document_links |
| Company capability | graph |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
node | query | string | Required | The node key, D:<document_id>. |
direction | query | string | Optional | out, in or both. |
depth | query | integer | Optional | Hops from the node, 1 to 3 (default 1). ≥ -2147483648; ≤ 2147483647 |
relations | query | string | Optional | Relation codes to walk. |
sample | query | integer | Optional | Nodes per page, 1 to 200 (default 8). ≥ -2147483648; ≤ 2147483647 |
offset | query | integer | Optional | 0 to 2000. ≥ -2147483648; ≤ 2147483647 |
min_confidence | query | integer or null | Optional | 0 to 100. |
include_similar | query | boolean | Optional | |
include_proposals | query | boolean or null | Optional | |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | unsupported_for_tenant, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
body | any | Required | |
format | string | Required | |
format_version | integer | Required |
Errors
The problem codes this operation can answer with. Each code links to its page.