> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corgea.app/llms.txt
> Use this file to discover all available pages before exploring further.

# List Code Quality Issues

> Retrieve code quality findings separately from security issues. Classification values are code quality labels, such as Maintainability, rather than CWEs. By default, results are ordered by creation time, newest first, with issue ID as a tie-breaker for stable pagination.



## OpenAPI

````yaml /api-reference/openapi.json get /issues/code-quality
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API for interacting with Corgea's scanning and vulnerability management
    features
servers:
  - url: https://www.corgea.app/api/v1
    description: Production server
  - url: https://eu.corgea.app/api/v1
    description: EU production server
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /issues/code-quality:
    get:
      tags:
        - Issues
      summary: List Code Quality Issues
      description: >-
        Retrieve code quality findings separately from security issues.
        Classification values are code quality labels, such as Maintainability,
        rather than CWEs. By default, results are ordered by creation time,
        newest first, with issue ID as a tie-breaker for stable pagination.
      operationId: listCodeQualityIssues
      parameters:
        - name: project
          in: query
          schema:
            type: string
          description: Filter issues by project name
        - name: repo
          in: query
          schema:
            type: string
          description: Filter issues by repository URL
        - name: branch
          in: query
          schema:
            type: string
          description: Filter issues by branch name
        - name: classification
          in: query
          schema:
            type: string
          description: Filter by code quality classification label (partial match)
          example: Maintainability
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: page_size
          in: query
          schema:
            type: integer
            default: 20
            maximum: 50
      responses:
        '200':
          description: Code quality issues retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  page:
                    type: integer
                  total_pages:
                    type: integer
                  total_issues:
                    type: integer
                  issues:
                    type: array
                    items:
                      $ref: '#/components/schemas/Issue'
components:
  schemas:
    Issue:
      type: object
      properties:
        id:
          type: string
          format: uuid
        classification:
          type: object
          properties:
            id:
              type: string
              example: CWE-123
            name:
              type: string
              example: Vulnerability Name
            description:
              type: string
              nullable: true
        urgency:
          type: string
          enum:
            - critical
            - high
            - medium
            - low
        created_at:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - open
            - in_progress
            - fixed
            - accepted_risk
            - false_positive
        sla_status:
          type: string
          enum:
            - on_track
            - due
            - overdue
        location:
          $ref: '#/components/schemas/IssueLocation'
        auto_triage:
          $ref: '#/components/schemas/AutoTriage'
        auto_fix_suggestion:
          $ref: '#/components/schemas/AutoFixSuggestion'
        assigned_to:
          $ref: '#/components/schemas/AssignedTo'
        scanner_metadata:
          type: object
          description: Scanner-provided metadata attached to the issue.
          additionalProperties:
            type: string
        reachability:
          $ref: '#/components/schemas/IssueReachabilitySummary'
    IssueLocation:
      type: object
      properties:
        file:
          type: object
          properties:
            name:
              type: string
            language:
              type: string
            path:
              type: string
        project:
          type: object
          properties:
            name:
              type: string
            branch:
              type: string
            git_sha:
              type: string
        line_number:
          type: integer
    AutoTriage:
      type: object
      properties:
        false_positive_detection:
          type: object
          properties:
            status:
              type: string
              enum:
                - valid
                - false_positive
                - pending
            reasoning:
              type: string
    AutoFixSuggestion:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - fix_available
            - no_fix
            - generating
            - false_positive
            - on_hold
            - unsupported
            - plan
          description: >-
            Current fix availability. Getting an issue starts eligible missing
            fix generation in the background by default. While that generation
            is pending, the status is generating; fetch the issue again until
            generation finishes. If generation is disabled or no fix is
            produced, the status is no_fix.
        patch:
          type: object
          properties:
            diff:
              type: string
              description: >-
                Unified diff format patch. Returns an empty string when the fix
                has no diff.
            explanation:
              type: string
              description: Explanation of how the fix addresses the vulnerability
    AssignedTo:
      type: object
      nullable: true
      description: User assigned to the issue, or null when the issue is unassigned.
      properties:
        id:
          type: string
          description: Assigned user's ID.
        email:
          type: string
          format: email
          description: Assigned user's email address.
        name:
          type: string
          nullable: true
          description: Assigned user's display name, or null when unavailable.
    IssueReachabilitySummary:
      type: object
      description: >-
        Endpoint reachability summary returned when include_reachability is
        true.
      properties:
        is_reachable:
          type: boolean
        endpoint_count:
          type: integer
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API key for authentication
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2 access token (JWT) in the Authorization header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.