---
title: "Get Kg Anomalies Internal"
method: GET
path: "/api/v1/internal/kg/anomalies"
tags: ["v1", "Internal"]
---

# Get Kg Anomalies Internal

`GET /api/v1/internal/kg/anomalies`

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

Row-level detail for a KG connectivity defect class.

Reuses kg_audit_service.kg_anomaly_rows — same rows kg_health computes
before reducing to counts. Row shape already uses opaque generic field
names (id/type/fromNode/toNode/linkType, no jeevy-schema-specific terms
beyond the node/edge vocabulary the whole graph already shares).

## Query parameters

- `scope` string, required: Graph scope — 'shop:<id>'.
- `kind` string, required: 'orphans' | 'dangling' | 'schema_violations'.
- `node_type` string, nullable: Restrict to one node type (orphans only).

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