---
title: "List code quality findings for a pull request"
method: GET
path: "/code-quality/findings"
---

# List code quality findings for a pull request

`GET /code-quality/findings`

Returns a list of code quality findings for a specific pull request. Only the findings from the latest scan are returned, excluding any suppressed findings.

## Query parameters

- `code_repo_id` integer, required
- `pr_number` string, required

## Response `200`

A list of code quality findings for the specified pull request

- object
  - `findings` object[], required
    - `id` integer, required — The unique identifier of the finding
    - `rule_id` string, required — The rule that triggered this finding
    - `description` string, nullable — An AI-generated description of the finding
    - `file` string, required — The file path where the finding was detected
    - `start_line` integer, required — The starting line number of the finding
    - `end_line` integer, required — The ending line number of the finding
    - `language` string, required — The programming language of the file
    - `external_comment_id` string, nullable — The ID of the comment on the pull request in the SCM provider
    - `scan_id` integer, required — The ID of the scan that produced this finding
    - `timestamp` integer, required — Unix timestamp of when the finding was created

## Other responses

- `400` — Invalid request parameters

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/revisions/5445e7c21137/schema)
