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

# ListDatasetRevisionsAPI mirrors the erdo_list_dataset_revisions MCP tool.




## OpenAPI

````yaml /api/openapi.json get /v1/datasets/{datasetSlug}/revisions
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-08-07'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/datasets/{datasetSlug}/revisions:
    get:
      summary: >
        ListDatasetRevisionsAPI mirrors the erdo_list_dataset_revisions MCP
        tool.
      operationId: GET:mcp.ListDatasetRevisionsAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: datasetSlug
          required: true
          schema:
            type: string
          style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  dataset_id:
                    type: string
                  dataset_slug:
                    type: string
                  revisions:
                    items:
                      $ref: '#/components/schemas/dataset.DatasetRevision'
                    type: array
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    dataset.DatasetRevision:
      description: |
        spelled out (never embedded) so the OpenAPI schema carries all of them.
      properties:
        created_at:
          format: date-time
          title: |
            CreatedAt is when this version became the dataset's stored file.
          type: string
        display_name:
          description: |
            was merged into the table keeps its original upload name.
          title: >
            DisplayName is the stored file's name (e.g. data.csv). A raw upload
            that
          type: string
        file_type:
          title: >
            FileType is the stored file's format (csv, excel, ...) when
            recorded.
          type: string
        id:
          description: |
            dataset query/fetch reads to run SQL against this version's rows.
          title: |
            ID is the dataset_storage_item id — pass it as revision_id on the
          type: string
        is_primary:
          title: >
            IsPrimary marks the live version — the one every normal read
            queries.
          type: boolean
        item_type:
          description: >
            pinned to, and only file items are that. Reported rather than
            implied so a caller never has to infer the kind of thing it is
            holding an id for.
          title: |
            ItemType is always "file" — a listed revision is one a read can be
          type: string
        superseded_at:
          description: >
            version, and also on a stored file that was never live — an upload
            merged into an existing table is kept as its own item without ever
            having been the dataset's contents, so it has nothing to have been
            superseded by.
          format: date-time
          title: >
            SupersededAt is when a newer version replaced this one. Null on the
            live
          type: string
      title: |
        DatasetRevision is one stored version of a dataset's file. Fields are
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````