Sign Up

Warm Pools

GET
/warm-pools

Authorization

headerAuthorizationBearer <token>

API Key access

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

List of warm pools

application/json
  1. response
[index: integer]?
curl -X GET 'http://localhost:3000/warm-pools'
[  {    "pool": 0.8008281904610115,    "cpu": 1.4658129805029452,    "osUser": "osUser",    "env": {      "key": "env"    },    "target": "target",    "currentSize": 6.027456183070403,    "organizationId": "organizationId",    "createdAt": "createdAt",    "disk": 5.637376656633329,    "mem": 5.962133916683182,    "errorReason": "errorReason",    "id": "id",    "snapshot": "snapshot",    "updatedAt": "updatedAt"  }]

Create a warm pool

POST
/warm-pools

Authorization

headerAuthorizationBearer <token>

API Key access

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Request Body

application/json
  1. body
snapshot*string

The snapshot (id or name) to keep warm sandboxes for. A pool only serves sandbox creates that use this snapshot with the default OS user and no custom env, volumes or secrets.

pool*number

Number of warm sandboxes to keep ready (capped by the organization quota)

Range1 <= value
target?string

Target region for the warm pool. Defaults to the organization default region.

Response Body

The warm pool has been created

application/json
  1. response
id*string
organizationId*string
snapshot*string
target*string
pool*number

Desired number of warm sandboxes

currentSize*number

Current number of ready warm sandboxes in the pool

cpu*number
mem*number
disk*number
osUser*string
env*
errorReason?string|null
createdAt*string
updatedAt*string
curl -X POST 'http://localhost:3000/warm-pools' \  -H 'Content-Type: application/json' \  -d '{  "pool": 3,  "snapshot": "my-snapshot",  "target": "us"}'
{  "pool": 0.8008281904610115,  "cpu": 1.4658129805029452,  "osUser": "osUser",  "env": {    "key": "env"  },  "target": "target",  "currentSize": 6.027456183070403,  "organizationId": "organizationId",  "createdAt": "createdAt",  "disk": 5.637376656633329,  "mem": 5.962133916683182,  "errorReason": "errorReason",  "id": "id",  "snapshot": "snapshot",  "updatedAt": "updatedAt"}

Update a warm pool size

PATCH
/warm-pools/{id}

Authorization

headerAuthorizationBearer <token>

API Key access

Path Parameters

id*string

Warm pool ID

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Request Body

application/json
  1. body
pool*number

New desired number of warm sandboxes (0 drains the pool)

Range0 <= value

Response Body

The warm pool has been updated

application/json
  1. response
id*string
organizationId*string
snapshot*string
target*string
pool*number

Desired number of warm sandboxes

currentSize*number

Current number of ready warm sandboxes in the pool

cpu*number
mem*number
disk*number
osUser*string
env*
errorReason?string|null
createdAt*string
updatedAt*string
curl -X PATCH 'http://localhost:3000/warm-pools/string' \  -H 'Content-Type: application/json' \  -d '{  "pool": 5}'
{  "pool": 0.8008281904610115,  "cpu": 1.4658129805029452,  "osUser": "osUser",  "env": {    "key": "env"  },  "target": "target",  "currentSize": 6.027456183070403,  "organizationId": "organizationId",  "createdAt": "createdAt",  "disk": 5.637376656633329,  "mem": 5.962133916683182,  "errorReason": "errorReason",  "id": "id",  "snapshot": "snapshot",  "updatedAt": "updatedAt"}

Delete a warm pool

DELETE
/warm-pools/{id}

Authorization

headerAuthorizationBearer <token>

API Key access

Path Parameters

id*string

Warm pool ID

Header Parameters

X-Daytona-Organization-ID?string

Use with JWT to specify the organization ID

Response Body

The warm pool has been deleted

curl -X DELETE 'http://localhost:3000/warm-pools/string'
Empty