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

# List listing versions

> Returns all versions for a specific library listing.



## OpenAPI

````yaml get /v1/library_listings/{user_defined_listing_id}/versions
openapi: 3.1.0
info:
  description: REST API for management of Baseten resources
  title: Baseten management API
  version: 1.0.0
servers:
  - url: https://api.baseten.co
security:
  - BearerAuth: []
paths:
  /v1/library_listings/{user_defined_listing_id}/versions:
    parameters:
      - $ref: '#/components/parameters/user_defined_listing_id'
    get:
      summary: Gets all versions for a library listing
      description: Returns all versions for a specific library listing.
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LibraryListingVersionsV1'
      x-codeSamples:
        - lang: bash
          source: >
            curl --request GET \

            --url
            https://api.baseten.co/v1/library_listings/{user_defined_listing_id}/versions
            \

            --header "Authorization: Bearer $BASETEN_API_KEY"
        - lang: python
          source: >-
            import requests

            import os

            API_KEY = os.environ.get("BASETEN_API_KEY", "<YOUR_API_KEY>")

            url =
            "https://api.baseten.co/v1/library_listings/{user_defined_listing_id}/versions"


            headers = {"Authorization": f"Bearer {API_KEY}"}


            response = requests.request(
                "GET",
                url,
                headers=headers
            )


            print(response.text)
components:
  parameters:
    user_defined_listing_id:
      schema:
        type: string
      description: The listing's user_defined_id.
      example: acme-text-model
      name: user_defined_listing_id
      in: path
      required: true
  schemas:
    LibraryListingVersionsV1:
      description: A list of library listing versions.
      properties:
        versions:
          items:
            $ref: '#/components/schemas/LibraryListingVersionV1'
          title: Versions
          type: array
      required:
        - versions
      title: LibraryListingVersionsV1
      type: object
    LibraryListingVersionV1:
      description: A library listing version.
      properties:
        version_tag:
          description: Human-readable tag for this version
          title: Version Tag
          type: string
        is_live:
          description: Whether this version is the live version
          title: Is Live
          type: boolean
        allow_truss_download:
          description: Whether users deploying this model can download the Truss
          title: Allow Truss Download
          type: boolean
        oracle_version_id:
          description: Id of the source model version
          title: Oracle Version Id
          type: string
        created_at:
          description: Time the version was created in ISO 8601 format
          format: date-time
          title: Created At
          type: string
        modified_at:
          description: Time the version was last modified
          format: date-time
          title: Modified At
          type: string
      required:
        - version_tag
        - is_live
        - allow_truss_download
        - oracle_version_id
        - created_at
        - modified_at
      title: LibraryListingVersionV1
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````