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

# Get Kg Node Subgraph Internal

`GET /api/v1/internal/kg/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/internal/kg/node/{node_id}/subgraph`
- Auth: none declared

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

Generic contract: edge `link_type`→`type`, `confidence`→`weight`; provenance
(match_method/link_source/status) folds into edge `meta`, same shape as
get_kg_edge_internal. Node `type` is passed through as-is (kg_traverse's
own node dicts already use the generic key name). Always requests edge
provenance — service-auth, X-Internal-Key.

## Path parameters

- `node_id` string, required

## Query parameters

- `scope` string, required: Graph scope — 'shop:<id>'.
- `hops` integer
- `direction` string: 'forward' | 'backward' | 'both'.
- `link_types` string, nullable: Comma-separated link types to follow. Omit for all.

## Headers

- `X-Internal-Key` string, nullable

## Response `200`

Successful Response

- object

## 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)
