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

## Response `200`

Successful Response

- HealthFileBreakdownResponse
  - `file_path` string, required
  - `score` number, required
  - `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

---

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