---
title: "Get Kg Path"
method: GET
path: "/api/v1/kg/debug/path"
tags: ["v1", "KG Debug"]
---

# Get Kg Path

`GET /api/v1/kg/debug/path`

## 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/path`
- Auth: none declared

Shortest path between two nodes. 200 with reachable=false when not
found within max_hops — never a 404/500 for "no path". Reuses
traversal.kg_find_path (pure reuse over kg_traverse, no new SQL).

## Query parameters

- `from` string, required: Starting node id.
- `to` string, required: Target node id.
- `max_hops` integer

## Response `200`

Successful Response

- KgPathResponse
  - `data` KgPathData, required
    - `path` string[], nullable
    - `path_labels` KgPathStepLabel[], nullable
      - `id` string, required
      - `display_name` string, nullable
      - `type` string, nullable
    - `hops` integer, nullable
  - `meta` KgPathMeta, required
    - `reachable` boolean, nullable
    - `max_hops` integer, required
    - `timed_out` boolean

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