---
title: "Health Distribution"
method: GET
path: "/snapshots/{snapshot_id}/health/distribution"
tags: ["code-health"]
---

# Health Distribution

`GET /snapshots/{snapshot_id}/health/distribution`

## Request

- Base URL: `https://api.repowise.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.repowise.dev/snapshots/{snapshot_id}/health/distribution`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/repowise/apis/repowise-hosted-api/docs/snapshots/:snapshot_id/health/distribution/get.ts> (a function with typed inputs; its response is checked against the schema)

NLOC-weighted band distribution (healthy/warning/alert) for the repo.

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `scope` string
- `counts` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-21** `cce15d886f2b`: 1 breaking
  - the response's body type changed from `object` to no type for status `200`
- **2026-09-14** `c3d46dfc6e3d`: 2 info
  - added the new optional `query` request parameter `counts`
  - added the new optional `query` request parameter `scope`

[Operation history](https://skmtc.dev/repowise/apis/repowise-hosted-api/changes/snapshots/:snapshot_id/health/distribution/get.md)

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) - [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) - [OpenAPI document](https://skmtc.dev/repowise/apis/repowise-hosted-api/revisions/3037f631a606?raw)
