> ## 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.

# Get SCA Detections for Scan

> Retrieve SCA detections for a specific scan

Also served at `/api/v1/scan/{scan_id}/issues/sca`, this endpoint's earlier name, which stays supported with the same parameters and response.



## OpenAPI

````yaml /api-reference/openapi.json get /scan/{scan_id}/detections/sca
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:
  /scan/{scan_id}/detections/sca:
    get:
      tags:
        - Detections
        - SCA
      summary: Get SCA Detections for Scan
      description: >-
        Retrieve SCA detections for a specific scan


        Also served at `/api/v1/scan/{scan_id}/issues/sca`, this endpoint's
        earlier name, which stays supported with the same parameters and
        response.
      operationId: getScanScaIssues
      parameters:
        - name: scan_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The ID of the scan
        - 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: 50
          description: The number of results per page
        - name: severity
          in: query
          required: false
          schema:
            type: string
          description: >-
            Filter by severity levels (comma-separated). Valid values: CRITICAL,
            HIGH, MEDIUM, LOW
          example: CRITICAL,HIGH
        - name: package
          in: query
          required: false
          schema:
            type: string
          description: Filter by package name (partial match)
          example: lodash
        - name: ecosystem
          in: query
          required: false
          schema:
            type: string
          description: Filter by package ecosystem (case-insensitive)
          example: npm
        - name: cve
          in: query
          required: false
          schema:
            type: string
          description: Filter by CVE identifier (partial match)
          example: CVE-2021
        - name: path
          in: query
          required: false
          schema:
            type: string
          description: Filter by file path (partial match)
          example: package.json
        - name: has_fix
          in: query
          required: false
          schema:
            type: boolean
          description: Filter by whether a fix is available (true/false)
          example: true
        - name: reachability
          in: query
          required: false
          schema:
            type: string
            enum:
              - not_direct_dependency
              - pending
              - vulnerable_usage_reachable
              - vulnerable_usage_unreachable
              - dead_dependency
          description: Filter SCA issues by dependency reachability status
          example: vulnerable_usage_reachable
        - name: include_reachability
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: >-
            Include dependency reachability status and description for each SCA
            issue.
        - name: sort_by
          in: query
          required: false
          schema:
            type: string
            enum:
              - created_at
              - '-created_at'
              - severity
              - '-severity'
              - package
              - '-package'
              - ecosystem
              - '-ecosystem'
          description: Sort results by field (prefix with '-' for descending order)
          example: '-severity'
        - name: status
          in: query
          required: false
          schema:
            type: string
          description: >-
            Filter by triage status (comma-separated). Valid values: open,
            fixed, false_positive, accepted_risk, duplicate
          example: open
        - name: package_exact
          in: query
          required: false
          schema:
            type: string
          description: >-
            Filter by an exact package name. Unlike package, this does not match
            packages that merely contain the value (lodash will not match
            lodash.merge), which makes it safe for drilling into a package
            group.
          example: lodash
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: >-
            Free-text search across package name, CVE identifier, summary,
            details, path and classification
          example: lodash
      responses:
        '200':
          description: SCA 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/SCAIssue'
        '403':
          description: Permission denied
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Permission denied
        '404':
          description: Scan not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: Scan not found
components:
  schemas:
    SCAIssue:
      type: object
      properties:
        finding_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            ID of the finding this issue is a detection of: the same across
            rescans. Null for an issue ingested before findings existed.
        id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        description:
          type: string
        details:
          type: string
        severity:
          type: string
          nullable: true
          enum:
            - CRITICAL
            - HIGH
            - MEDIUM
            - LOW
          description: >-
            Severity reported by the dependency scanner, normally uppercase.
            Compare values case-insensitively.
        cvss_score:
          type: number
          nullable: true
        classification:
          type: string
          nullable: true
          description: >-
            Threat classification, such as malicious, separate from severity.
            null when the issue has no classification.
        cve:
          type: string
          description: CVE identifier if available
        package:
          type: object
          properties:
            name:
              type: string
            version:
              type: string
            ecosystem:
              type: string
            fix_version:
              type: string
              description: Version that fixes the vulnerability
        location:
          type: object
          properties:
            path:
              type: string
              description: Path to the file containing the vulnerable package
        reachability:
          $ref: '#/components/schemas/SCAReachability'
    SCAReachability:
      type: object
      properties:
        status:
          type: string
          enum:
            - not_direct_dependency
            - pending
            - vulnerable_usage_reachable
            - vulnerable_usage_unreachable
            - dead_dependency
            - not_applicable
          description: >-
            Reachability state. not_applicable is returned only when getting a
            single container issue.
        description:
          type: string
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: >-
        API key for authentication API tokens belonging to inactive users are
        rejected.
    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.