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

# Get all SCA packages of a project



## OpenAPI

````yaml get /project/{projectId}/results/sca/packages
openapi: 3.0.0
info:
  title: Cybedefend API
  description: >-
    CybeDefend is an advanced API for application security analysis. Key
    features include OAuth 2.0 authentication, user/organization/project
    management, and REBAC-based permissions. It excels in static, dynamic, and
    IaC security analyses (SAST, DAST, IaC, etc.).
  version: '1.0'
  contact: {}
servers:
  - url: https://api-eu.cybedefend.com
    description: EU
  - url: https://api-us.cybedefend.com
    description: US
security: []
tags: []
paths:
  /project/{projectId}/results/sca/packages:
    get:
      tags:
        - Results & Vulnerabilities
      summary: Get all SCA packages of a project
      operationId: ResultController_findAllScaPackages
      parameters:
        - name: projectId
          required: true
          in: path
          schema:
            format: uuid
            type: string
        - name: query
          required: false
          in: query
          description: Search query
          schema:
            type: string
        - name: page
          required: false
          in: query
          description: Page number
          schema:
            minimum: 1
            type: number
        - name: limit
          required: false
          in: query
          description: Number of items per page
          schema:
            minimum: 10
            maximum: 100
            type: number
        - name: sort
          required: false
          in: query
          description: Sort field
          schema:
            type: string
            enum:
              - currentState
              - currentSeverity
              - currentPriority
              - createdAt
              - updatedAt
              - currentCVSS
        - name: order
          required: false
          in: query
          description: Sort order
          schema:
            enum:
              - asc
              - desc
            type: string
        - name: severity
          required: false
          in: query
          description: Filter by severity
          schema:
            type: array
            items:
              type: string
              enum:
                - critical
                - high
                - medium
                - low
        - name: status
          required: false
          in: query
          description: Filter by status
          schema:
            type: array
            items:
              type: string
              enum:
                - to_verify
                - resolved
                - confirmed
                - ignored
        - name: language
          required: false
          in: query
          description: Programming language
          schema:
            type: string
        - name: priority
          required: false
          in: query
          description: Filter by priority
          schema:
            type: array
            items:
              type: string
              enum:
                - critical_urgent
                - urgent
                - normal
                - low
                - very_low
        - name: packageType
          required: false
          in: query
          description: Filter by package type
          schema:
            type: array
            items:
              type: string
              enum:
                - direct
                - dev
                - transitive
        - name: pageNumber
          required: false
          in: query
          description: Page number alias
          schema:
            minimum: 1
            type: number
        - name: pageSizeNumber
          required: false
          in: query
          description: Page size alias
          schema:
            minimum: 1
            type: number
        - name: searchQuery
          required: false
          in: query
          description: Search query alias
          schema:
            type: string
        - name: branch
          required: false
          in: query
          description: Filter by branch name (e.g. main, develop, feature/xyz)
          schema:
            type: string
        - name: hasAutofix
          required: false
          in: query
          description: >-
            Filter by autofix status: true = only with autofix, false = only
            without autofix, omit = all
          schema:
            type: boolean
      responses:
        '200':
          description: All SCA packages of a project
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GetProjectPackagesResponseDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                example:
                  message: Unauthorized
                  statusCode: 401
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                example:
                  message: Forbidden
                  statusCode: 403
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
components:
  schemas:
    GetProjectPackagesResponseDto:
      type: object
      properties:
        projectId:
          type: string
          description: Project unique identifier
        page:
          type: number
          description: Current page number
        limit:
          type: number
          description: Number of items per page
        total:
          type: number
          description: Total number of packages
        totalPages:
          type: number
          description: Total number of pages
        packages:
          type: array
          items:
            $ref: '#/components/schemas/ScaDetectedPackageDto'
      required:
        - projectId
        - page
        - limit
        - total
        - totalPages
        - packages
    ErrorDto:
      type: object
      properties:
        timestamp:
          type: string
          example: '2025-02-18T12:31:18.491Z'
          description: Timestamp of the error
        service:
          type: string
          example: AiService
          description: Name of the service where the error occurred
        method:
          type: string
          example: startConversation
          description: Method name where the error occurred
        message:
          type: string
          example: Invalid parameters provided
          description: Error message
        code:
          type: number
          example: 400
          description: HTTP status code
          minimum: 100
          maximum: 599
      required:
        - timestamp
        - service
        - method
        - message
        - code
    ScaDetectedPackageDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the detected package
        projectId:
          type: string
          description: Project unique identifier
        packageName:
          type: string
          description: Name of the package
        packageVersion:
          type: string
          description: Version of the package
        fileName:
          type: string
          description: File name where the package was detected
        ecosystem:
          type: string
          description: Ecosystem (npm, maven, etc.)
        createdAt:
          type: string
          description: Date when the record was created
        updatedAt:
          type: string
          description: Date when the record was updated
      required:
        - id
        - projectId
        - packageName
        - packageVersion
        - fileName
        - ecosystem
        - createdAt
        - updatedAt

````