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

# Health Modules

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

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `scope` string
- `counts` string

## Response `200`

Successful Response

- HealthModuleRollup[]
  - `module` string, required
  - `file_count` integer, required
  - `average_health` number, required
  - `worst_file_path` string, nullable
  - `worst_file_score` number, nullable
  - `nloc_weighted_health` number, required
  - `critical_finding_count` integer
  - `warning_finding_count` integer

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-14** `c3d46dfc6e3d` — 2 info
  - added the new optional `query` request parameter `counts`
  - added the new optional `query` request parameter `scope`

[Change history](https://skmtc.dev/repowise/apis/repowise-hosted-api/changes/snapshots/:snapshot_id/health/modules/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/29a9df53f763?raw)
