Daytona Volumes API

The volumes API from Daytona — 3 operation(s) for volumes.

Operations 5

GET /volumes List all volumes #
POST /volumes Create a new volume #
DELETE /volumes/{volumeId} Delete volume #
GET /volumes/{volumeId} Get volume details #
GET /volumes/by-name/{name} Get volume details by name #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/daytona-io:daytona-io-volumes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

daytona-io-volumes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@daytona.com
    name: Daytona Platforms Inc.
    url: https://www.daytona.io
  description: Daytona AI platform API Docs
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  title: Daytona Volumes API
  version: '1.0'
servers:
- url: http://localhost:3000
tags:
- name: Volumes
paths:
  /volumes:
    get:
      operationId: listVolumes
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      - description: Include deleted volumes in the response
        explode: true
        in: query
        name: includeDeleted
        required: false
        schema:
          type: boolean
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/VolumeDto'
                type: array
          description: List of all volumes
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: List all volumes
      tags:
      - Volumes
    post:
      operationId: createVolume
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateVolume'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeDto'
          description: The volume has been successfully created.
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Create a new volume
      tags:
      - Volumes
  /volumes/{volumeId}:
    delete:
      operationId: deleteVolume
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      - description: ID of the volume
        explode: false
        in: path
        name: volumeId
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          description: Volume has been marked for deletion
        '409':
          description: Volume is in use by one or more sandboxes
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Delete volume
      tags:
      - Volumes
    get:
      operationId: getVolume
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      - description: ID of the volume
        explode: false
        in: path
        name: volumeId
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeDto'
          description: Volume details
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Get volume details
      tags:
      - Volumes
  /volumes/by-name/{name}:
    get:
      operationId: getVolumeByName
      parameters:
      - description: Use with JWT to specify the organization ID
        explode: false
        in: header
        name: X-Daytona-Organization-ID
        required: false
        schema:
          type: string
        style: simple
      - description: Name of the volume
        explode: false
        in: path
        name: name
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VolumeDto'
          description: Volume details
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Get volume details by name
      tags:
      - Volumes
components:
  schemas:
    VolumeDto:
      example:
        organizationId: 123e4567-e89b-12d3-a456-426614174000
        createdAt: '2023-01-01T00:00:00.000Z'
        lastUsedAt: '2023-01-01T00:00:00.000Z'
        errorReason: Error processing volume
        name: my-volume
        id: vol-12345678
        state: ready
        updatedAt: '2023-01-01T00:00:00.000Z'
      properties:
        id:
          description: Volume ID
          example: vol-12345678
          type: string
        name:
          description: Volume name
          example: my-volume
          type: string
        organizationId:
          description: Organization ID
          example: 123e4567-e89b-12d3-a456-426614174000
          type: string
        state:
          allOf:
          - $ref: '#/components/schemas/VolumeState'
          description: Volume state
          example: ready
        createdAt:
          description: Creation timestamp
          example: '2023-01-01T00:00:00.000Z'
          type: string
        updatedAt:
          description: Last update timestamp
          example: '2023-01-01T00:00:00.000Z'
          type: string
        lastUsedAt:
          description: Last used timestamp
          example: '2023-01-01T00:00:00.000Z'
          type:
          - string
          - 'null'
        errorReason:
          description: The error reason of the volume
          example: Error processing volume
          type:
          - string
          - 'null'
      required:
      - createdAt
      - errorReason
      - id
      - name
      - organizationId
      - state
      - updatedAt
      type: object
    CreateVolume:
      example:
        name: name
      properties:
        name:
          type: string
      required:
      - name
      type: object
    VolumeState:
      description: Volume state
      enum:
      - creating
      - ready
      - pending_create
      - pending_delete
      - deleting
      - deleted
      - error
      type: string
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: API Key access
      scheme: bearer
      type: http
    oauth2:
      openIdConnectUrl: http://localhost:3000/.well-known/openid-configuration
      type: openIdConnect
x-provenance:
  method: harvested
  publisher: Daytona
  source: https://www.daytona.io/docs/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)