---
title: "Get Kg Node Subgraph"
method: GET
path: "/api/v1/kg/debug/node/{node_id}/subgraph"
tags: ["v1", "KG Debug"]
---

# Get Kg Node Subgraph

`GET /api/v1/kg/debug/node/{node_id}/subgraph`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/kg/debug/node/{node_id}/subgraph`
- Auth: none declared

Ego-subgraph — bounded neighborhood walk from one node (JEEVY-661 kg_traverse).

Always requests edge provenance (match_method/confidence/link_source/status)
— this is the debugging surface, unlike kg_seam's retrieval callers which
never pass it. Reuses traversal.kg_traverse verbatim; no new SQL.

## Path parameters

- `node_id` string, required

## Query parameters

- `hops` integer: Max traversal depth.
- `direction` string: 'forward' | 'backward' | 'both'.
- `link_types` string, nullable: Comma-separated link types to follow. Omit for all.

## Response `200`

Successful Response

- KgSubgraphResponse
  - `data` KgSubgraphData, required
    - `root` string, nullable
    - `nodes` KgSubgraphNode[], required
      - `id` string, required
      - `type` string, nullable
      - `depth` integer, required
      - `facts` object
      - `display_name` string, nullable
    - `edges` KgSubgraphEdge[], required
      - `from_node` string, required
      - `to_node` string, required
      - `link_type` string, required
      - `match_method` string, nullable
      - `confidence` number, nullable
      - `link_source` string, nullable
      - `status` string, nullable
  - `meta` KgSubgraphMeta, required
    - `hops` integer, required
    - `direction` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
