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

# List volumes

> Lists the account's volumes with its storage allowance, allocation, and price.



## OpenAPI

````yaml https://api.tinfoil.sh/openapi.yaml get /api/volumes
openapi: 3.2.0
info:
  title: Tinfoil Controlplane API
  version: 0.1.0
  description: >-
    Manage inference API keys, read usage and invoices, and manage Tinfoil
    confidential containers, their configuration, and the organization resources
    they use. Authenticate with an admin API key sent as a bearer token.
servers:
  - url: https://api.tinfoil.sh
security:
  - apiKey: []
tags:
  - name: Account
    description: >-
      The identity and organization behind the API key, and the token usage and
      invoices of the personal account or organization.
  - name: API keys
    parent: Account
    description: Inference API keys of the personal account or organization.
  - name: Containers
    description: Create, deploy, and stop confidential containers.
  - name: Container updates
    description: >-
      Move a container to a new release, and promote or cancel an update that is
      held for review.
  - name: Projects
    description: Groups of containers deployed from the same config source.
  - name: Volumes
    description: Encrypted persistent volumes that attach to containers.
  - name: Secrets
    description: >-
      Organization secrets available to containers, and secrets scoped to a
      single GitHub repository.
  - name: Access
    description: >-
      SSH public keys for attested SSH access to containers, custom domains that
      route to containers, and credentials for pulling images from private
      registries. An organization can store one ecr and one custom registry
      connection, each identified by its hostname.
  - name: GitHub & models
    description: >-
      Repository config and image builds through the Tinfoil GitHub app, and
      packaging Hugging Face models for use in containers. Packaging models
      requires a GPU entitlement or model access for the organization.
  - name: Config registry
    description: >-
      Publish tinfoil-config.yml revisions, read published configs, and resolve
      the endorsements that let clients verify them.
  - name: Bunkers
    description: Bunker owner keys and owner attestation.
paths:
  /api/volumes:
    get:
      tags:
        - Volumes
      summary: List volumes
      description: >-
        Lists the account's volumes with its storage allowance, allocation, and
        price.
      operationId: listVolumes
      responses:
        '200':
          description: Volumes and storage usage for the account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeList'
        '401':
          $ref: '#/components/responses/Error'
          description: Missing or invalid credentials.
        '403':
          $ref: '#/components/responses/Error'
          description: The API key is not permitted to perform this action.
      security:
        - apiKey:
            - volumes.read
components:
  schemas:
    VolumeList:
      type: object
      required:
        - volumes
        - allocated_storage_bytes
        - max_storage_bytes
        - available_storage_bytes
        - storage_gb_per_hour
        - can_create_volumes
        - billing_exempt
        - retention_ends_at
      properties:
        volumes:
          type: array
          items:
            $ref: '#/components/schemas/VolumeListItem'
        allocated_storage_bytes:
          type: integer
          format: int64
        max_storage_bytes:
          type: integer
          format: int64
        available_storage_bytes:
          type: integer
          format: int64
        storage_gb_per_hour:
          type: number
          description: Storage price in USD per GB-hour.
        can_create_volumes:
          type: boolean
          description: Whether the account can currently pay for new volumes.
        billing_exempt:
          type: boolean
        retention_ends_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When the organization's retained volumes will be removed, if
            scheduled.
    VolumeListItem:
      allOf:
        - $ref: '#/components/schemas/Volume'
        - type: object
          required:
            - host_name
            - container_name
          properties:
            host_name:
              type: string
            container_name:
              type:
                - string
                - 'null'
              description: Name of the attached container, if any.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
        code:
          type: string
          description: Stable machine-readable error code.
      additionalProperties: true
    Volume:
      type: object
      required:
        - id
        - host_id
        - name
        - image
        - size_bytes
        - container_id
        - slot
        - created_at
        - sandbox
        - clerk_org_id
        - clerk_user_id
        - billing_ended_at
      properties:
        id:
          type:
            - string
            - 'null'
          format: uuid
        host_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Host the volume's disk lives on.
        name:
          type: string
        image:
          type: string
          description: Identifier of the disk image on the host.
        size_bytes:
          type: integer
          format: int64
        container_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Container the volume is attached to, if any.
        slot:
          type:
            - string
            - 'null'
          description: Mount slot on the attached container, if any.
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        sandbox:
          type: boolean
          description: Whether this is a Bunker volume.
        clerk_org_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the organization that owns the volume, or null for a personal
            volume.
        clerk_user_id:
          type:
            - string
            - 'null'
          description: >-
            ID of the user who owns a personal volume, or null for an
            organization volume.
        billing_ended_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When storage billing for the volume ended, or null while it is
            billed.
  responses:
    Error:
      description: The request failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An admin API key. Personal admin keys reach the API key, billing and
        Account endpoints for the creator's personal account; the other
        endpoints need an organization admin key. Security requirement entries
        list the permission a scoped key needs for the operation.

````

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