---
title: "Returns packaged code-health alerts for the latest successful analysis."
method: GET
path: "/api/projects/{project-id}/quality/code-health/alerts"
tags: ["quality"]
---

# Returns packaged code-health alerts for the latest successful analysis.

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

## 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`
- Auth: none declared

## Path parameters

- `project-id` integer, required

## Response `200`

- QualityAlerts
  - `alerts` object[], required: Code health alerts packaged for the quality API.
    - `name` string, required: Human-readable alert title.
    - `description` string, required: Human-readable alert summary.
    - `explanation` string, required: Additional explanation for why the alert matters.
    - `domain` 'code-health', required: Alert domain.
    - `detailsRef` string, required: Backend-owned reference to additional alert details.

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