Sign Up

Volumes

GET/volumes
AuthorizationBearer <token>

API Key access

In: header

Query Parameters

includeDeleted?boolean

Include deleted volumes in the response

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X GET "https://example.com/volumes"
[  {    "id": "vol-12345678",    "name": "my-volume",    "organizationId": "123e4567-e89b-12d3-a456-426614174000",    "state": "ready",    "createdAt": "2023-01-01T00:00:00.000Z",    "updatedAt": "2023-01-01T00:00:00.000Z",    "lastUsedAt": "2023-01-01T00:00:00.000Z",    "errorReason": "Error processing volume"  }]
POST/volumes
AuthorizationBearer <token>

API Key access

In: header

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/volumes" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "vol-12345678",  "name": "my-volume",  "organizationId": "123e4567-e89b-12d3-a456-426614174000",  "state": "ready",  "createdAt": "2023-01-01T00:00:00.000Z",  "updatedAt": "2023-01-01T00:00:00.000Z",  "lastUsedAt": "2023-01-01T00:00:00.000Z",  "errorReason": "Error processing volume"}
GET/volumes/{volumeId}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

volumeId*string

ID of the volume

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X GET "https://example.com/volumes/string"
{  "id": "vol-12345678",  "name": "my-volume",  "organizationId": "123e4567-e89b-12d3-a456-426614174000",  "state": "ready",  "createdAt": "2023-01-01T00:00:00.000Z",  "updatedAt": "2023-01-01T00:00:00.000Z",  "lastUsedAt": "2023-01-01T00:00:00.000Z",  "errorReason": "Error processing volume"}
DELETE/volumes/{volumeId}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

volumeId*string

ID of the volume

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

curl -X DELETE "https://example.com/volumes/string"
Empty
GET/volumes/by-name/{name}
AuthorizationBearer <token>

API Key access

In: header

Path Parameters

name*string

Name of the volume

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

application/json

curl -X GET "https://example.com/volumes/by-name/string"
{  "id": "vol-12345678",  "name": "my-volume",  "organizationId": "123e4567-e89b-12d3-a456-426614174000",  "state": "ready",  "createdAt": "2023-01-01T00:00:00.000Z",  "updatedAt": "2023-01-01T00:00:00.000Z",  "lastUsedAt": "2023-01-01T00:00:00.000Z",  "errorReason": "Error processing volume"}