> ## 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.

# Get a volume version

> Returns a single version of the volume. Address it with `:<tag>` for a tag, `@<digest>` for a full content digest or a prefix of at least 12 hexadecimal characters, or `head` for the version a reference with no tag or digest resolves to. A digest prefix that matches more than one version is rejected: supply more characters.



## OpenAPI

````yaml get /v1/volumes/{volume_namespace}/{volume_name}/versions/{volume_version}
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/volumes/{volume_namespace}/{volume_name}/versions/{volume_version}:
    parameters:
      - $ref: '#/components/parameters/volume_namespace'
      - $ref: '#/components/parameters/volume_name'
      - $ref: '#/components/parameters/volume_version'
    get:
      summary: Gets one version of a volume
      description: >-
        Returns a single version of the volume. Address it with `:<tag>` for a
        tag, `@<digest>` for a full content digest or a prefix of at least 12
        hexadecimal characters, or `head` for the version a reference with no
        tag or digest resolves to. A digest prefix that matches more than one
        version is rejected: supply more characters.
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeVersionDetailV1'
      x-codeSamples:
        - lang: bash
          source: >
            curl --request GET \

            --url
            https://api.baseten.co/v1/volumes/{volume_namespace}/{volume_name}/versions/{volume_version}
            \

            --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/volumes/{volume_namespace}/{volume_name}/versions/{volume_version}"


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


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


            print(response.text)
components:
  parameters:
    volume_namespace:
      schema:
        type: string
      name: volume_namespace
      in: path
      required: true
    volume_name:
      schema:
        type: string
      name: volume_name
      in: path
      required: true
    volume_version:
      schema:
        type: string
      name: volume_version
      in: path
      required: true
  schemas:
    VolumeVersionDetailV1:
      description: One version, with the fields only a single-version read reports.
      properties:
        namespace:
          description: Namespace the volume belongs to, in lowercase.
          title: Namespace
          type: string
        volume:
          description: Name of the volume, in lowercase.
          title: Volume
          type: string
        version_ref:
          description: >-
            Full address of this version, as
            `bdn:<namespace>/<volume>@<digest>`. Paste this into the
            `bdn.mounts` section of a config.yaml to pin to it.
          title: Version Ref
          type: string
        digest:
          description: Content digest of the version, as `b3:<hex>`.
          title: Digest
          type: string
        sequence:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Revision the version was committed at. Null for versions committed
            before the volume service recorded it.
          title: Sequence
        lifecycle:
          description: Lifecycle state of the version, for example ALIVE or TOMBSTONED.
          title: Lifecycle
          type: string
        is_head:
          description: Whether the reserved `head` tag points at this version.
          title: Is Head
          type: boolean
        tags:
          description: Tags pointing at this version that your API key can read.
          items:
            type: string
          title: Tags
          type: array
        total_size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          description: Total size of the version's files in bytes. Null when not recorded.
          title: Total Size Bytes
        created_at:
          description: When the version was committed, in ISO 8601 format.
          format: date-time
          title: Created At
          type: string
        tombstoned_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            When the version was deleted, in ISO 8601 format. Null unless the
            lifecycle is TOMBSTONED.
          title: Tombstoned At
        delete_after:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            When the version stops being restorable, in ISO 8601 format. Null
            unless the lifecycle is TOMBSTONED.
          title: Delete After
        entry_count:
          anyOf:
            - type: integer
            - type: 'null'
          description: Number of files in the version. Null when not recorded.
          title: Entry Count
        volume_sequence:
          description: >-
            Revision of the volume as a whole when this version was read. Pass
            it as expected_sequence on a later delete to make that delete
            conditional on the volume not having changed since.
          title: Volume Sequence
          type: integer
      required:
        - namespace
        - volume
        - version_ref
        - digest
        - sequence
        - lifecycle
        - is_head
        - tags
        - total_size_bytes
        - created_at
        - tombstoned_at
        - delete_after
        - entry_count
        - volume_sequence
      title: VolumeVersionDetailV1
      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.

````