Volumes
AuthorizationBearer <token>API Key access
includeDeleted?booleanInclude deleted volumes in the response
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
List of all volumes
application/json- response
[index: integer]?curl -X GET 'http://localhost:3000/volumes'[ { "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" }]AuthorizationBearer <token>API Key access
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
application/json- body
name*stringThe volume has been successfully created.
application/json- response
id*stringVolume ID
name*stringVolume name
organizationId*stringOrganization ID
state*stringVolume state
"creating""ready""pending_create""pending_delete""deleting""deleted""error"createdAt*stringCreation timestamp
updatedAt*stringLast update timestamp
lastUsedAt?|Last used timestamp
errorReason*|The error reason of the volume
curl -X POST 'http://localhost:3000/volumes' \ -H 'Content-Type: application/json' \ -d '{ "name": "name"}'{ "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"}AuthorizationBearer <token>API Key access
volumeId*stringID of the volume
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
Volume details
application/json- response
id*stringVolume ID
name*stringVolume name
organizationId*stringOrganization ID
state*stringVolume state
"creating""ready""pending_create""pending_delete""deleting""deleted""error"createdAt*stringCreation timestamp
updatedAt*stringLast update timestamp
lastUsedAt?|Last used timestamp
errorReason*|The error reason of the volume
curl -X GET 'http://localhost:3000/volumes/string'{ "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"}AuthorizationBearer <token>API Key access
volumeId*stringID of the volume
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
Volume has been marked for deletion
curl -X DELETE 'http://localhost:3000/volumes/string'AuthorizationBearer <token>API Key access
name*stringName of the volume
X-Daytona-Organization-ID?stringUse with JWT to specify the organization ID
Volume details
application/json- response
id*stringVolume ID
name*stringVolume name
organizationId*stringOrganization ID
state*stringVolume state
"creating""ready""pending_create""pending_delete""deleting""deleted""error"createdAt*stringCreation timestamp
updatedAt*stringLast update timestamp
lastUsedAt?|Last used timestamp
errorReason*|The error reason of the volume
curl -X GET 'http://localhost:3000/volumes/by-name/string'{ "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"}