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

# List model versions

> List saved versions for a model

Returns a list of version records for a **model** asset. Draft and published versions are included; autosaves are not. Each item is a summary (no canvas graph). Use **Get model version** for full `nodes`, `edges`, and `metadata` for one version.


## OpenAPI

````yaml api-reference/openapi.json GET /api/public/v1/assets/{assetId}/model/versions
openapi: 3.0.0
info:
  title: Less Public API
  version: 1.0.0
  description: >-
    Integrator-facing JSON API. All paths are under `/api/public/v1` and match
    the route handlers in the Less webapp (`apps/webapp/src/app/api/public/v1`).
    Authenticate with `Authorization: Bearer <api-token>`.
servers:
  - url: https://{BaseURL}
    variables:
      BaseURL:
        default: app.less.tech
        description: >-
          Your workspace host (hostname only, no scheme or path). Defaults to
          app.less.tech; replace with your workspace host if different.
security:
  - bearerAuth: []
paths:
  /api/public/v1/assets/{assetId}/model/versions:
    get:
      tags:
        - Assets
        - Models
      summary: List model versions
      description: Summaries only (no canvas graph). Excludes autosaves.
      parameters:
        - name: assetId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      versions:
                        type: array
                        items:
                          $ref: '#/components/schemas/PublicModelVersionSummary'
                    required:
                      - versions
                required:
                  - data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorBody'
        '404':
          description: Not a model or no access
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorBody'
components:
  schemas:
    PublicModelVersionSummary:
      type: object
      properties:
        id:
          type: string
          format: uuid
        versionNumber:
          type: integer
          nullable: true
        recordType:
          type: string
          description: draft, version, or autosave (autosaves excluded from list).
        published:
          type: boolean
        comment:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          nullable: true
      required:
        - id
        - versionNumber
        - recordType
        - published
        - comment
        - createdAt
        - updatedAt
    PublicApiErrorBody:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````