Create sandbox

http
POST /sandboxes

Create a sandbox. Requires project.sandboxes.manage.

Request body

FieldTypeRequiredDescription
access_scopestringYesPrivate sandboxes require creator credentials or a creator-owned MCP OAuth grant.
project_referencestringProject UUID or slug to bill. When set, the project owner is billed.
environment_idstringEnvironment whose variables are copied once into the sandbox; it also identifies the billing project.
ttl_modestringSandbox lifetime policy. default uses the platform’s idle and maximum lifetime limits.
ttl_hoursintegerRequired when ttl_mode is duration. Number of hours before cleanup, up to 24.

Responses

StatusDescription
201Sandbox created and billed to the project identified by project_reference or environment_id.
400Bad request
401Unauthorized
402Payment required
403Forbidden
404Not found