> ## 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 SCA Issue Groups

> Retrieve SCA issues collapsed into groups with a count per group, so a client can render a summary without downloading every issue. Accepts the same filters as GET /issues/sca. Drill into a group by re-issuing those filters against GET /issues/sca with package_exact.



## OpenAPI

````yaml /api-reference/openapi.json get /issues/sca/groups
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
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /issues/sca/groups:
    get:
      tags:
        - Issues
        - SCA
      summary: List SCA Issue Groups
      description: >-
        Retrieve SCA issues collapsed into groups with a count per group, so a
        client can render a summary without downloading every issue. Accepts the
        same filters as GET /issues/sca. Drill into a group by re-issuing those
        filters against GET /issues/sca with package_exact.
      operationId: listScaIssueGroups
      parameters:
        - name: group_by
          in: query
          required: false
          schema:
            type: string
            enum:
              - package
            default: package
          description: How to group the SCA issues. Currently only package is supported.
        - name: breakdown
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: Include per-severity and per-status counts on each group
        - name: project
          in: query
          required: false
          schema:
            type: string
          description: Filter SCA issues by project name
        - name: repo
          in: query
          required: false
          schema:
            type: string
          description: Filter SCA issues by repository URL
        - name: branch
          in: query
          required: false
          schema:
            type: string
          description: Filter SCA issues by branch name
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
          description: The page number for pagination
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            default: 20
            maximum: 100
          description: The number of groups per page
      responses:
        '200':
          description: SCA issue groups retrieved successfully or no project found
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      status:
                        type: string
                        example: ok
                      page:
                        type: integer
                      total_pages:
                        type: integer
                      total_groups:
                        type: integer
                      groups:
                        type: array
                        items:
                          $ref: '#/components/schemas/SCAIssuePackageGroup'
                  - type: object
                    properties:
                      status:
                        type: string
                        example: no_project_found
        '400':
          description: Invalid group_by value
components:
  schemas:
    SCAIssuePackageGroup:
      type: object
      description: A group of SCA issues sharing a package name.
      properties:
        package:
          type: object
          properties:
            name:
              type: string
              example: lodash
            ecosystems:
              type: array
              items:
                type: string
              example:
                - npm
        issue_count:
          type: integer
          example: 4
        breakdown:
          $ref: '#/components/schemas/SCAIssueGroupBreakdown'
    SCAIssueGroupBreakdown:
      type: object
      description: Counts within the group, present only when breakdown is true.
      properties:
        by_severity:
          type: object
          additionalProperties:
            type: integer
          example:
            CRITICAL: 1
            HIGH: 2
            MEDIUM: 1
            LOW: 0
        by_status:
          type: object
          additionalProperties:
            type: integer
          example:
            open: 3
            fixed: 1
            false_positive: 0
            accepted_risk: 0
            duplicate: 0
  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

````