---
title: "Refactoring Targets"
method: GET
path: "/snapshots/{snapshot_id}/health/refactoring-targets"
tags: ["code-health"]
---

# Refactoring Targets

`GET /snapshots/{snapshot_id}/health/refactoring-targets`

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `biomarkers` string[], nullable
- `limit` integer

## Response `200`

Successful Response

- RefactoringTargetsResponse
  - `targets` RefactoringTarget[]
    - `file_path` string, required
    - `score` number, required
    - `impact` number, required
    - `effort` number, required
    - `biomarkers` 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
  - `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)
