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

# Get Kg Node Source

`GET /api/v1/kg/debug/node/{canonical_id}/source`

## 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/{canonical_id}/source`
- Auth: none declared

Return the jeevy source DB row that backs a KG node — the "DB record" peek.

Resolves canonical_id (a KG node UUID) -> canonical_key -> source table + PK
-> SELECT * from that table, for projection QA (compare source DB against
projected facts). PK-keyed node types (job/task/workstream/line_item/user/
personnel): found=True + a redacted row. Name-keyed or composite-keyed types
(part, bom-line, organization, vendor, ...): found=False + a reason, not a 500.

Denylisted columns (security_gates.redact_row -> capture_denylist) are
stripped before the row is returned — mirrors internal.py's
get_kg_node_source_internal, behind user-auth.

## Path parameters

- `canonical_id` string, required

## Response `200`

Successful Response

- KgNodeSourceResponse: Standard response envelope for GET /kg/debug/node/{canonical_id}/source.
  - `data` KgNodeSourceData, required: Source-DB row backing a KG node (kgTypes.ts GraphNodeSource). found=False is a graceful-empty case (unknown node, or a name/composite-keyed node_type with no single source-row PK) — ``reason`` explains which. Secrets are redacted server-side (security_gates.redact_row) before ``row`` is set, so it is safe to render verbatim.
    - `found` boolean, required
    - `node_id` string, required
    - `node_type` string, nullable
    - `canonical_key` string, nullable
    - `table` string, nullable
    - `source_id` string, nullable
    - `row` object, nullable
    - `reason` string, nullable

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