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

# List a dataset's published versions

> List versions newest-first, each with its case count and whether it is current.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/public/datasets/{dataset_id}/versions
openapi: 3.1.0
info:
  title: TraceRoot Public API
  version: 0.1.0
servers:
  - description: TraceRoot Cloud
    url: https://app.traceroot.ai
  - description: Self-hosted
    url: '{baseUrl}'
    variables:
      baseUrl:
        default: http://localhost:8000
        description: Your TraceRoot backend URL
security: []
paths:
  /api/v1/public/datasets/{dataset_id}/versions:
    get:
      tags:
        - Offline Eval
      summary: List a dataset's published versions
      description: >-
        List versions newest-first, each with its case count and whether it is
        current.
      operationId: list_dataset_versions
      parameters:
        - in: path
          name: dataset_id
          required: true
          schema:
            title: Dataset Id
            type: string
        - description: Versions per page
          in: query
          name: limit
          required: false
          schema:
            default: 50
            description: Versions per page
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
        - description: Opaque cursor from a previous page
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - maxLength: 64
                minLength: 1
                type: string
              - type: 'null'
            description: Opaque cursor from a previous page
            title: Cursor
        - description: >-
            Target project for the request. Required when authenticating with a
            user session token (a user credential is only meaningful scoped to a
            project); for an API key it is optional and, if given, must match
            the key's project.
          in: query
          name: project_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Target project for the request. Required when authenticating with
              a user session token (a user credential is only meaningful scoped
              to a project); for an API key it is optional and, if given, must
              match the key's project.
            title: Project Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDatasetVersionsResponse'
          description: Successful Response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Authentication failed
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: No access to this project
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Validation error
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Rate limit exceeded
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Authentication service unavailable
      security:
        - BearerAuth: []
components:
  schemas:
    ListDatasetVersionsResponse:
      properties:
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        versions:
          items:
            $ref: '#/components/schemas/PublicDatasetVersion'
          title: Versions
          type: array
      required:
        - versions
        - next_cursor
      title: ListDatasetVersionsResponse
      type: object
    ErrorResponse:
      description: >-
        The canonical public error envelope (matches the gateway's normalized
        shape).
      properties:
        detail:
          title: Detail
          type: string
      required:
        - detail
      title: ErrorResponse
      type: object
    PublicDatasetVersion:
      properties:
        case_count:
          maximum: 9007199254740991
          minimum: 0
          title: Case Count
          type: integer
        created_at:
          title: Created At
          type: string
        dataset_version_id:
          title: Dataset Version Id
          type: string
        is_current:
          title: Is Current
          type: boolean
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
        version_number:
          title: Version Number
          type: integer
      required:
        - dataset_version_id
        - version_number
        - label
        - note
        - case_count
        - created_at
        - is_current
      title: PublicDatasetVersion
      type: object
  securitySchemes:
    BearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.