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

# Elenca versioni dei documenti per un artefatto

> Restituisce tutte le versioni archiviate dei documenti caricati per uno specifico artefatto (controllo/domanda) all'interno di un workflow.



## OpenAPI

````yaml get /api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/documents/{artifactid}/versions
openapi: 3.1.0
info:
  title: Aegister API
  version: 1.0.5
servers: []
security: []
paths:
  /api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/documents/{artifactid}/versions:
    get:
      tags:
        - Cyber Assurance • Documents
      summary: List document versions for an artifact
      description: >-
        Returns all stored versions of documents uploaded for a specific
        artifact (control/question) within a workflow.
      operationId: list-document-versions
      parameters:
        - in: path
          name: artifactid
          schema:
            type: string
          description: Artifact ID (e.g. control ID like 'A.5.1').
          required: true
        - in: path
          name: organizationid
          schema:
            type: integer
          description: Organization ID.
          required: true
        - in: path
          name: workflowid
          schema:
            type: string
          description: Workflow ID.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 0
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
                  total:
                    type: number
                    description: >-
                      Total number of items that meet the list filter.  

                      This doesn't represent the number of items inside the
                      `data` array.
                    minimum: 0
                    examples:
                      - 20
                      - 30
                      - 40
                  data:
                    type: array
                    items:
                      type: object
                      required:
                        - id
                        - artifact_id
                        - original_name
                        - size
                        - content_type
                        - source
                        - created_by
                        - created_at
                        - download_url
                      properties:
                        id:
                          type: integer
                          description: Document version ID.
                        artifact_id:
                          type: string
                          description: Artifact identifier (e.g. control ID like 'A.5.1').
                        original_name:
                          type: string
                          description: Original filename as uploaded.
                        size:
                          type: integer
                          description: File size in bytes.
                        content_type:
                          type: string
                          description: MIME type (e.g. 'application/pdf').
                        source:
                          type: string
                          description: Upload source (e.g. 'attached', 'evidence_upload').
                        created_by:
                          type: string
                          description: Email or username of the uploader.
                        created_at:
                          type: string
                          format: date-time
                          description: Upload timestamp.
                        download_url:
                          type: string
                          format: uri-reference
                          description: Relative URL to download this version.
                      additionalProperties: false
          description: ''
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 1
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - - 9153
          description: ''
      security:
        - ApiKeyAuth: []
        - ApiKeyQueryParam: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Aegister-Token
    ApiKeyQueryParam:
      type: apiKey
      in: query
      name: X-Aegister-Token

````