cURL
API Reference
Post apiv1sandboxes
POST
cURL
Body
application/json
Docker image to run inside the shared Fly app
Example:
"node:22"
Optional timeout in milliseconds for the sandbox. Defaults to 10 minutes (600000ms). Maximum 1 hour (3600000ms) from creation for FREE users.
Required range:
x >= 0Example:
600000
Environment variables to set in the sandbox. These will be available to all commands executed in the sandbox.
Example:
{
"NODE_ENV": "production",
"API_KEY": "secret"
}Mount volumes by name. Creates if missing, reuses if exists. Key is mount path, value is volume name or config. Volume names must contain only lowercase alphanumeric characters and underscores (max 30 chars).
Example:
{
"/workspace": "my_packages",
"/cache": { "name": "build_cache", "sizeGb": 5 }
}Response
Sandbox created