---
title: "List code quality findings for a repository"
method: GET
path: "/code-quality/repo-findings"
---

# List code quality findings for a repository

`GET /code-quality/repo-findings`

## Request

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

Returns a paginated list of code quality findings for a repository. Findings represent repository state across full-repository scans rather than a snapshot of one scan. Use the header X-Has-Next-Page for pagination.

## Query parameters

- `code_repo_id` integer, required
- `filter_state` 'open' | 'ignored' | 'closed'
- `page` integer
- `per_page` integer

## Response `200`

A list of code quality findings for the specified repository

- 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
    - `severity` 'critical' | 'high' | 'medium' | 'low', required: A human-friendly representation of the finding's importance
    - `severity_score` integer, required: A number indicating the importance of the finding
    - `file` string, required: The repository-relative 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
    - `start_column` integer, required: The starting column number of the finding
    - `end_column` integer, required: The ending column number of the finding
    - `language` string, required: The programming language of the file
    - `timestamp` integer, required: Unix timestamp of when the finding was first detected
    - `state` 'open' | 'ignored' | 'closed', required: The current state of the finding

## Other responses

- `400`: Invalid request parameters or repository not found

---

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