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

# Download an image's bill of materials

> Download one image's bill of materials, rebuilt from the stored components: a CycloneDX 1.5 JSON document by default, or a flat CSV. Every component of the image is included, unpaged.



## OpenAPI

````yaml https://platform.ankra.app/openapi.json get /org/security/sbom/image/export
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /org/security/sbom/image/export:
    get:
      tags:
        - security
      summary: Download an image's bill of materials
      description: >-
        Download one image's bill of materials, rebuilt from the stored
        components: a CycloneDX 1.5 JSON document by default, or a flat CSV.
        Every component of the image is included, unpaged.
      operationId: export_security_sbom_image
      parameters:
        - description: >-
            The image identity: its digest, or repository:tag when the scanner
            knew no digest.
          in: query
          name: image
          required: true
          schema:
            type: string
        - description: cyclonedx (default) or csv.
          in: query
          name: format
          required: false
          schema:
            default: cyclonedx
            enum:
              - cyclonedx
              - csv
            type: string
      responses:
        '200':
          content:
            application/vnd.cyclonedx+json:
              schema:
                description: A CycloneDX 1.5 document rebuilt from the stored components.
                type: object
            text/csv:
              schema:
                description: >-
                  One row per component: name, version, package_type,
                  component_type, purl, licenses, source_package, layer_digest.
                type: string
          description: >-
            The bill of materials as a download (Content-Disposition:
            attachment)
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityDetailError'
          description: Business validation error
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityPermissionDenied'
          description: Permission denied
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityDetailError'
          description: Organization-scoped resource not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    SecurityDetailError:
      properties:
        detail:
          type: string
      required:
        - detail
      type: object
    SecurityPermissionDenied:
      properties:
        detail:
          enum:
            - permission_denied
          type: string
        permission:
          type: string
        scope_type:
          type: string
      required:
        - detail
        - permission
        - scope_type
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````