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

# List component versions

> Returns the version history for a workflow component, ordered from newest to oldest.

Each entry includes the version number, the version row's UUID, the optional `version_note`, and audit metadata. Use the returned `version_number` with `GET /workflow-components/{component_id}/versions/{version_number}` to fetch the full versioned component data.



## OpenAPI

````yaml workflow-api/workflow-api.yaml get /workflow-components/{component_id}/versions
openapi: 3.0.0
info:
  title: Workflow API
  version: 1.0.0
  description: API for managing workflows and their metadata
servers:
  - url: https://api.cloudcruise.com
    description: CloudCruise Platform Production API Server
security:
  - AuthScheme: []
paths:
  /workflow-components/{component_id}/versions:
    get:
      summary: List component versions
      description: >-
        Returns the version history for a workflow component, ordered from
        newest to oldest.


        Each entry includes the version number, the version row's UUID, the
        optional `version_note`, and audit metadata. Use the returned
        `version_number` with `GET
        /workflow-components/{component_id}/versions/{version_number}` to fetch
        the full versioned component data.
      operationId: listWorkflowComponentVersions
      parameters:
        - name: component_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The ID of the workflow component
        - name: cc-key
          in: header
          required: false
          schema:
            type: string
          description: CloudCruise API key for authentication
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkflowComponentVersionSummary'
        '401':
          description: Unauthorized - Invalid or missing authentication
        '404':
          description: Component not found
        '500':
          description: Internal server error
components:
  schemas:
    WorkflowComponentVersionSummary:
      type: object
      description: >-
        Summary record for a single component version. Returned by

        `GET /workflow-components/{component_id}/versions`. Use `version_number`
        to fetch the full

        versioned definition via `GET
        /workflow-components/{component_id}/versions/{version_number}`.
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the version row in the underlying versions table
        component_id:
          type: string
          format: uuid
          description: ID of the parent component
        version_number:
          type: integer
          minimum: 1
          description: Auto-incrementing version number for this component (1-indexed)
        version_note:
          type: string
          nullable: true
          description: Optional note describing what changed in this version
        created_by:
          type: string
          format: uuid
          nullable: true
          description: ID of the user who created this version
        created_at:
          type: string
          format: date-time
          description: Timestamp when this version was created
      required:
        - id
        - component_id
        - version_number
        - created_at
  securitySchemes:
    AuthScheme:
      type: apiKey
      name: cc-key
      in: header
      description: >-
        API key-based authentication. Provide your CloudCruise API key in the
        cc-key header.

````