Skip to main content
Nowledge MemNowledge Mem

Get Live Preview Neighbors

GET
/graph/live-preview/{node_id}

Get a compact 1-hop neighborhood for feed/live preview surfaces.

Unlike expand_neighbors, this path intentionally avoids path materialization and returns only direct neighbor rows plus connecting edges.

Path Parameters

node_id*Node Id

Query Parameters

limit?Limit

Maximum direct neighbors to return

Range1 <= value <= 50
Default20
include_metadata?Include Metadata

Include metadata in results

Defaulttrue
space_id?|

Optional memory space lens for the graph

Response Body

application/json

application/json

curl -X GET "https://example.com/graph/live-preview/string"
{  "center_node": "string",  "depth": 0,  "edges": [    null  ],  "metadata": {    "error": "string",    "expansion_depth": 0,    "include_metadata": true,    "max_limit": 0,    "query_type": "string"  },  "neighbors": [    null  ],  "total_edges": 0,  "total_neighbors": 0}