---
title: "Returns backend-managed thresholds and benchmark values used for interpretation and visualization of Code Health metrics."
method: GET
path: "/api/projects/{project-id}/quality/code-health/benchmarks"
tags: ["quality"]
---

# Returns backend-managed thresholds and benchmark values used for interpretation and visualization of Code Health metrics.

`GET /api/projects/{project-id}/quality/code-health/benchmarks`

## Request

- Base URL: `https://codescene.io` (the document declares no server; this is the origin it was published from)
- URL: `https://codescene.io/api/projects/{project-id}/quality/code-health/benchmarks`
- Auth: none declared

## Path parameters

- `project-id` integer, required

## Response `200`

- CodeHealthBenchmarks
  - `benchmarks` object[], required: List of benchmark and threshold entries for the metric.
    - `id` string, required: Unique identifier of the benchmark entry.
    - `label` string, required: Human-readable label for the benchmark entry.
    - `type` 'threshold' | 'benchmark' | 'ai-readiness', required: The source and context for the entry: benchmark, threshold, or ai-readiness score.
    - `value` number, required: Numeric value associated with the benchmark entry.
  - `metric` string, required: Name of the metric these benchmarks apply to.
  - `scale` object, required: The numeric scale used for the metric.
    - `min` number, required: Minimum value of the Code Health scale.
    - `max` number, required: Maximum value of the Code Health scale.

## Other responses

- `400`
- `401`
- `403`
- `404`

---

[API](https://skmtc.dev/codescene/apis/codescene-api.md) · [All operations](https://skmtc.dev/codescene/apis/codescene-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codescene/apis/codescene-api/revisions/e443e0b6bc89?raw)
