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

# Get Kg Schema Debug

`GET /api/v1/kg/debug/schema`

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

Return the shop's KG TYPE META-GRAPH — distinct node/link types + the
(fromType, linkType, toType) triples that actually occur, with counts.

The structural-gap finder: a missing triple = a relationship type the
extraction pipeline never projects. Mirrors internal.py's
get_kg_schema_internal, behind user-auth.

## Response `200`

Successful Response

- KgSchemaResponse: Standard response envelope for GET /kg/debug/schema.
  - `data` KgSchemaData, required: Type meta-graph: distinct node/link types + the triples that occur. nodeTypeCounts / linkTypeCounts (KG Toolkit explorer, 2026-07-13): node/edge counts per type — the "table of contents" the toolkit's no-selection index renders (types + counts), so an engineer sees the KG's shape before drilling into any one entity. Additive fields.
    - `nodeTypes` string[], required
    - `linkTypes` string[], required
    - `triples` KgSchemaTriple[], required
      - `fromType` string, required
      - `linkType` string, required
      - `toType` string, required
      - `count` integer, required
      - `dangling` integer
    - `nodeTypeCounts` KgTypeCount[]
      - `type` string, required
      - `count` integer, required
      - `description` string, nullable
      - `deprecated` boolean
    - `linkTypeCounts` KgTypeCount[]
      - `type` string, required
      - `count` integer, required
      - `description` string, nullable
      - `deprecated` boolean

---

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