---
title: "Returns detailed markers for the Code Health Decline alert."
method: GET
path: "/api/projects/{project-id}/quality/code-health/alerts/code-health-decline"
tags: ["quality"]
---

# Returns detailed markers for the Code Health Decline alert.

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

## 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/alerts/code-health-decline`
- Auth: none declared

## Path parameters

- `project-id` integer, required

## Response `200`

- object[]
  - `name` string, required: Repo-scoped file path for a degrading file.
  - `year` number, nullable, required: Code Health score one year back.
  - `month` number, nullable, required: Code Health score one month back.
  - `now` number, nullable, required: Current Code Health score.
  - `delta` number, required: The code health decline delta that triggered the alert.

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