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

# List file versions



## OpenAPI

````yaml get /platform/files/{parentId}/versions
openapi: 3.0.3
info:
  title: ROOTKey Documentation
  description: >-
    Your API of choice for creating, managing, and validating information easily
    and securely!
  termsOfService: https://www.rootkey.ai/legal/privacy-policy
  contact:
    name: ROOTKey
    url: https://www.rootkey.ai/contact
    email: support@rootkey.ai
  version: 1.0.0
servers:
  - description: Production
    url: https://api.rootkey.ai/api-v1/
security:
  - x-api-key: []
tags:
  - name: api-v1-public
    description: Unauthenticated top-level /api-v1 endpoints (health, plans, annual report)
  - name: api-v1-files
    description: >-
      File anchoring, versioning, validation and compliance reporting
      (/api-v1/platform/files)
  - name: api-v1-records
    description: Structured-data record anchoring (/api-v1/platform/records)
  - name: api-v1-vaults
    description: 'Vault lifecycle: create / update / delete (/api-v1/platform/vaults)'
  - name: api-v1-recovery-points
    description: >-
      Backup archives created from vault contents
      (/api-v1/platform/recovery-point)
paths:
  /platform/files/{parentId}/versions:
    get:
      tags:
        - api-v1-files
      summary: List file versions
      parameters:
        - name: parentId
          in: path
          required: true
          schema:
            type: string
        - name: vaultAddress
          in: query
          required: true
          schema:
            type: string
          description: Blockchain address of the vault that owns the file
        - name: cursor
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: number
            default: 10
        - name: order
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
      responses:
        '200':
          description: Paginated list of file versions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedFileDTOResponse'
        '400':
          $ref: '#/components/responses/DomainError'
        '401':
          description: Unauthenticated
        '404':
          description: Parent file not found
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - x-api-key: []
components:
  schemas:
    PaginatedFileDTOResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/FileDTO'
        pagination:
          $ref: '#/components/schemas/PaginationBlock'
        metadata:
          $ref: '#/components/schemas/PaginationMetadata'
    FileDTO:
      type: object
      properties:
        id:
          type: string
        parentId:
          type: string
          nullable: true
        versionsNumber:
          type: number
        name:
          type: string
          example: brand_guidelines.pdf
        sizeBytes:
          type: number
          description: Raw byte size
        extension:
          type: string
          example: PDF
        lastValidateAt:
          type: string
          format: date-time
          nullable: true
        status:
          type: string
          enum:
            - PENDING
            - FAILED
            - REGISTERED
        integrity:
          type: number
        url:
          type: string
        isTest:
          type: boolean
        createdAt:
          type: string
          format: date-time
        hash:
          type: string
          nullable: true
        ipAddress:
          type: string
          nullable: true
        userAgent:
          type: string
          nullable: true
        createdBy:
          nullable: true
          type: object
          properties:
            name:
              type: string
            email:
              type: string
        vault:
          type: object
          properties:
            name:
              type: string
              example: Marketing Assets
            address:
              type: string
    PaginationBlock:
      type: object
      properties:
        previousCursor:
          type: string
          nullable: true
        nextCursor:
          type: string
          nullable: true
    PaginationMetadata:
      type: object
      properties:
        fetchedCount:
          type: number
        totalCount:
          type: number
        serverTimestamp:
          type: string
          format: date-time
        parameters:
          type: object
          properties:
            limit:
              type: number
            cursor:
              type: string
              nullable: true
            order:
              type: string
              enum:
                - asc
                - desc
    DomainErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            requestId:
              type: string
            message:
              type: string
            errorCode:
              type: string
            docUrl:
              type: string
            timestamp:
              type: string
              format: date-time
  responses:
    DomainError:
      description: >-
        Domain-level error (validation, business rule violation, resource not
        found)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DomainErrorResponse'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DomainErrorResponse'
  securitySchemes:
    x-api-key:
      type: apiKey
      name: x-api-key
      in: header
      description: >-
        ROOTKey API key (rk_live_... for production, rk_test_... for the test
        network).

````