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

> Retrieve software dependencies (SBOM) for a specific scan.



## OpenAPI

````yaml /api-reference/openapi.json get /scan/{scan_id}/dependencies
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}/dependencies:
    get:
      tags:
        - Dependencies
      summary: Get Dependencies for Scan
      description: Retrieve software dependencies (SBOM) for a specific scan.
      operationId: getScanDependencies
      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: name
          in: query
          required: false
          schema:
            type: string
          description: Filter by dependency name (partial match)
          example: django
        - name: version
          in: query
          required: false
          schema:
            type: string
          description: Filter by dependency version
          example: 4.2.0
        - name: type
          in: query
          required: false
          schema:
            type: string
          description: Filter by dependency ecosystem or package type
          example: pypi
        - name: path
          in: query
          required: false
          schema:
            type: string
          description: Filter by file path (partial match)
          example: requirements.txt
        - name: purl
          in: query
          required: false
          schema:
            type: string
          description: Filter by package URL (partial match)
          example: pkg:pypi/django
        - name: license
          in: query
          required: false
          schema:
            type: string
          description: Filter by license
          example: MIT
        - name: dep_type
          in: query
          required: false
          schema:
            type: string
            enum:
              - direct
              - transitive
              - all
            default: all
          description: Filter by dependency relationship type
          example: direct
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: Search across dependency name, version, and package URL
          example: lodash
        - name: sort_by
          in: query
          required: false
          schema:
            type: string
            enum:
              - name
              - '-name'
              - version
              - '-version'
              - type
              - '-type'
              - created_at
              - '-created_at'
          description: Sort results by field (prefix with '-' for descending order)
          example: name
      responses:
        '200':
          description: Get Dependencies for Scan retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  page:
                    type: integer
                  total_pages:
                    type: integer
                  total_dependencies:
                    type: integer
                  dependencies:
                    type: array
                    items:
                      $ref: '#/components/schemas/Dependency'
        '400':
          description: Invalid dependency type filter
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: 'Invalid dep_type. Must be one of: direct, transitive, all.'
        '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:
    Dependency:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        version:
          type: string
        type:
          type: string
        purl:
          type: string
        path:
          type: string
        licenses:
          type: array
          items:
            type: string
        properties:
          type: array
          items: {}
        is_direct:
          type: boolean
        parent_id:
          type: string
          nullable: true
        source_id:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        scan:
          type: object
          properties:
            id:
              type: string
              format: uuid
              nullable: true
            branch:
              type: string
              nullable: true
            project:
              type: string
              nullable: true
  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

````