> ## 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 for a Scan

> Retrieve a scan's 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 /scan/{scan_id}/issues/sca.



## OpenAPI

````yaml /api-reference/openapi.json get /scan/{scan_id}/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:
  /scan/{scan_id}/issues/sca/groups:
    get:
      tags:
        - Issues
        - SCA
        - Scans
      summary: List SCA Issue Groups for a Scan
      description: >-
        Retrieve a scan's 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 /scan/{scan_id}/issues/sca.
      operationId: listScaIssueGroupsForScan
      parameters:
        - name: scan_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The scan to group SCA issues for
        - 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: 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
          content:
            application/json:
              schema:
                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'
        '400':
          description: Invalid group_by value
        '404':
          description: Scan not found
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

````