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

# Health Coverage

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

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `offset` integer
- `limit` integer
- `module_limit` integer
- `include_inferred` boolean

## Response `200`

Successful Response

- HealthCoverageResponse
  - `overall_line_coverage_pct` number, nullable
  - `overall_branch_coverage_pct` number, nullable
  - `file_count_with_coverage` integer
  - `source_format` string, nullable
  - `ingested_at` string, nullable
  - `ingested_commit_sha` string, nullable
  - `files` CoverageFileRow[]
    - `file_path` string, required
    - `source_format` string, required
    - `line_coverage_pct` number, required
    - `branch_coverage_pct` number, nullable
    - `total_coverable_lines` integer
    - `ingested_at` string, nullable
    - `ingested_commit_sha` string, nullable
    - `health_score` number, nullable
    - `nloc` integer, nullable
  - `modules` CoverageModuleRow[]
    - `module` string, required
    - `files` integer, required
    - `covered_lines` integer, required
    - `total_lines` integer, required
    - `line_coverage_pct` number, required
  - `modules_total` integer
  - `total` integer
  - `basis` string, nullable
  - `inferred` InferredTestMap — The graph-inferred test map: counts, never a ratio. ``files_reached`` and ``files_not_reached`` are deliberately two counts rather than one fraction - a fraction invites a progress bar, and a progress bar is the coverage percentage this basis is not allowed to claim. ``files_total`` is the full count whatever ``files`` carries, so a paged list is never read as the whole repo.
    - `files` ReachedFileRow[]
      - `file_path` string, required
      - `reached` boolean, required
      - `health_score` number, nullable
      - `nloc` integer, nullable
    - `files_total` integer
    - `files_reached` integer
    - `files_not_reached` integer
    - `test_file_count` integer
  - `state` string
  - `reason` string, nullable

## Other responses

- `422` — Validation Error

---

[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/d1694e41a8a1?raw)
