Create a sandbox. Requires project.sandboxes.manage.
Arguments
inputCreateSandboxInput!requiredinput.projectReferenceStringProject UUID or slug to bill; the project owner is billed. Required unless environmentId is set.
input.environmentIdIDEnvironment whose variables are copied once into the sandbox; it also identifies the billing project.
input.accessScopeSandboxAccessScope!requiredOne of
project,private.input.ttlModeSandboxLifetimeModeOne of
default,duration,always_on.input.ttlHoursInt
Responses
mutation CreateSandbox($input: CreateSandboxInput!) { createSandbox(input: $input) { id accessScope workspaceStorage shortId endpoint status ttlMode ttlHours expiresAt runId stoppedAt createdAt projectId lastActivityAt variableSnapshot { sourceEnvironmentId variableCount copiedAt } }}{ "data": { "createSandbox": { "id": "string", "accessScope": "project", "workspaceStorage": "ephemeral", "shortId": "string", "endpoint": "string", "status": "pending", "ttlMode": "default", "ttlHours": 0, "expiresAt": "2026-01-01T00:00:00Z", "runId": "string", "stoppedAt": "2026-01-01T00:00:00Z", "createdAt": "2026-01-01T00:00:00Z", "projectId": "string", "lastActivityAt": "2026-01-01T00:00:00Z", "variableSnapshot": { "sourceEnvironmentId": "string", "variableCount": 0, "copiedAt": "2026-01-01T00:00:00Z" } } }}The Sandbox! in data.createSandbox.