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

# Get all versions of a file on a branch

> List paginated historical versions of a file across commits on a branch, including schema hash for tabular files.



## OpenAPI

````yaml https://dev.hub.oxen.ai/api/_spec/oxen_server_openapi.json get /api/repos/{namespace}/{repo_name}/branches/{branch_name}/versions/{path}
openapi: 3.1.0
info:
  description: >-
    Oxen is a fast, unstructured data version control, to help version large
    machine learning datasets written in Rust.
  license:
    name: ''
  title: oxen-server
  version: 0.50.0
servers:
  - description: Production API
    url: https://hub.oxen.ai
  - description: Local Development
    url: http://localhost:3000
security:
  - api_key: []
tags:
  - description: Namespace management endpoints
    name: Namespaces
  - description: Repository management endpoints.
    name: Repositories
paths:
  /api/repos/{namespace}/{repo_name}/branches/{branch_name}/versions/{path}:
    get:
      tags:
        - Branches
      summary: Get all versions of a file on a branch
      description: >-
        List paginated historical versions of a file across commits on a branch,
        including schema hash for tabular files.
      operationId: list_entry_versions
      parameters:
        - description: Namespace of the repository
          example: ox
          in: path
          name: namespace
          required: true
          schema:
            type: string
        - description: Name of the repository
          example: ImageNet-1k
          in: path
          name: repo_name
          required: true
          schema:
            type: string
        - description: Name of the branch
          example: main
          in: path
          name: branch_name
          required: true
          schema:
            type: string
        - description: Path to the file or dir
          example: images/train.jpg
          in: path
          name: path
          required: true
          schema:
            type: string
        - in: path
          name: page
          required: true
          schema:
            minimum: 0
            type:
              - integer
              - 'null'
        - in: path
          name: page_size
          required: true
          schema:
            minimum: 0
            type:
              - integer
              - 'null'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedEntryVersionsResponse'
          description: List of entry versions found
        '404':
          description: Repository, branch or path not found
components:
  schemas:
    PaginatedEntryVersionsResponse:
      allOf:
        - $ref: '#/components/schemas/StatusMessage'
        - $ref: '#/components/schemas/PaginatedEntryVersions'
        - properties:
            branch:
              $ref: '#/components/schemas/Branch'
            path:
              type: string
          required:
            - branch
            - path
          type: object
    StatusMessage:
      properties:
        oxen_version:
          type:
            - string
            - 'null'
        status:
          type: string
        status_message:
          type: string
      required:
        - status
        - status_message
      type: object
    PaginatedEntryVersions:
      allOf:
        - $ref: '#/components/schemas/Pagination'
        - properties:
            versions:
              items:
                $ref: '#/components/schemas/CommitEntryVersion'
              type: array
          required:
            - versions
          type: object
    Branch:
      properties:
        commit_id:
          type: string
        name:
          type: string
      required:
        - name
        - commit_id
      type: object
    Pagination:
      properties:
        page_number:
          minimum: 0
          type: integer
        page_size:
          minimum: 0
          type: integer
        total_entries:
          minimum: 0
          type: integer
        total_pages:
          minimum: 0
          type: integer
      required:
        - page_size
        - page_number
        - total_pages
        - total_entries
      type: object
    CommitEntryVersion:
      properties:
        commit:
          $ref: '#/components/schemas/Commit'
        resource:
          $ref: '#/components/schemas/ResourceVersion'
        schema_hash:
          type:
            - string
            - 'null'
      required:
        - commit
        - resource
      type: object
    Commit:
      example:
        author: ox
        email: ox@example.com
        id: a1b2c3d4e5f67890abcdef1234567890
        message: Refactor data loading pipeline.
        parent_ids:
          - f1e2d3c4b5a67890fedcba9876543210
        timestamp: '2025-01-01T10:00:00Z'
      properties:
        author:
          type: string
        email:
          type: string
        id:
          type: string
        message:
          type: string
        parent_ids:
          items:
            type: string
          type: array
        timestamp:
          format: date-time
          type: string
      required:
        - id
        - parent_ids
        - message
        - author
        - email
        - timestamp
      type: object
    ResourceVersion:
      properties:
        path:
          type: string
        version:
          type: string
      required:
        - path
        - version
      type: object
  securitySchemes:
    api_key:
      bearerFormat: JWT
      scheme: bearer
      type: http

````