---
title: "Health File Breakdown"
method: GET
path: "/snapshots/{snapshot_id}/health/files/breakdown"
tags: ["code-health"]
---

# Health File Breakdown

`GET /snapshots/{snapshot_id}/health/files/breakdown`

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `path` string, required — file path
- `scope` string
- `counts` string

## Response `200`

Successful Response

- HealthFileBreakdownResponse
  - `file_path` string, required
  - `score` number, required
  - `structure_deduction` number, nullable
  - `history_deduction` number, nullable
  - `unclamped_score` number, nullable
  - `band` string, nullable
  - `max_ccn` integer, nullable
  - `max_nesting` integer, nullable
  - `nloc` integer, nullable
  - `duplication_pct` number, nullable
  - `has_test_file` boolean, nullable
  - `line_coverage_pct` number, nullable
  - `branch_coverage_pct` number, nullable
  - `module` string, nullable
  - `defect_score` number, nullable
  - `maintainability_score` number, nullable
  - `performance_score` number, nullable
  - `total_deduction` number, nullable
  - `categories` HealthBreakdownCategory[]
    - `category` string, required
    - `cap` number, required
    - `raw_deduction` number, required
    - `applied_deduction` number, required
    - `capped` boolean
    - `finding_count` integer
  - `deductions_by_category` object
  - `findings` BiomarkerFinding[]
    - `id` string, required
    - `biomarker_type` string, required
    - `severity` string, required
    - `file_path` string, required
    - `function_name` string, nullable
    - `line_start` integer, nullable
    - `line_end` integer, nullable
    - `details` object
    - `health_impact` number
    - `reason` string
    - `status` string
    - `suggestion` string, nullable
    - `dimension` string
    - `symbol_id` string, nullable
    - `is_test` boolean
  - `suggestion` string, nullable
  - `state` string
  - `reason` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-14** `c3d46dfc6e3d` — 5 info
  - added the new optional `query` request parameter `counts`
  - added the new optional `query` request parameter `scope`
  - added the optional property `history_deduction` to the response with the `200` status
  - added the optional property `structure_deduction` to the response with the `200` status
  - …1 more

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