Return the tenant's knowledge graph.
Return entity nodes and relationship edges for the current tenant's workspace. Shape is compatible with react-force-graph-2d graphData prop.
List mode (no root): returns the top-N most-connected nodes ordered by degree DESC, node_id ASC. Paginate with limit and cursor.
Focus mode (root set): BFS traversal from the given node label up to depth hops (1–3, default 2). Returns at most limit nodes ordered by degree DESC. Cursor pagination does not apply in focus mode (BFS result is bounded by max_nodes, not paginated).
Pagination (list mode): use limit (default 200, max 1000) and cursor (opaque string — forward the X-Next-Cursor header). When a next page exists the response header X-Next-Cursor is set and metadata.truncated is true.
RLS: only entities belonging to the authenticated workspace are returned. Empty workspace → empty lists, never stub data.
Metadata semantics (list mode): metadata.total_nodes is the workspace-wide count; metadata.truncated is True when any cap was applied (page cap OR workspace-exceeds-limit).
Metadata semantics (focus mode): metadata.total_nodes is the workspace-wide count; metadata.truncated is True when the BFS result exceeded limit nodes.
Request
- Base URL: https://api.andish.ru (the document declares no server; this is the origin it was published from)
- URL: https://api.andish.ru/v1/graph
- Auth: none declared
Query parameters
Maximum number of nodes per page (list mode) or max BFS nodes (focus mode). Default 200, max 1000.
Opaque pagination cursor (list mode only). Pass the value of the X-Next-Cursor response header to fetch the next page. Ignored when root is set.
Focus-mode root node label. When set, the endpoint performs a BFS traversal from this node instead of the list-mode top-N query. Non-existent root → empty graph (not 404). Cross-tenant root → empty graph (RLS isolation).
BFS depth in focus mode (1–3). Ignored when root is not set. Default 2.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.