---
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`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/code-quality/findings`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `code_quality:read`

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
    - `reasoning` string, nullable: An AI-generated explanation of why this finding was raised
    - `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.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
