project_reference to identify the project to bill; an environment can also supply project context and initial variables.
1. Create a sandbox
Create a sandbox withPOST /sandboxes:
create-sandbox.sh
SANDBOX_ID to the response’s id value.
2. Check readiness
CallGET /sandboxes/{sandbox_id}/readyz before sending a command:
check-readiness.sh
ok: true. If the sandbox is still provisioning, wait briefly and check again. A 404 means the selected sandbox was not found; a 503 reports runtime unavailability.
3. Run a command
Run a command withPOST /sandboxes/{sandbox_id}/commands/run:
run-command.sh
Verify the result
Confirm that the command result contains the working directory printed bypwd. A created sandbox alone does not confirm that a command succeeded.
4. Delete the sandbox
CallDELETE /sandboxes/{sandbox_id} after saving any files you need:
delete-sandbox.sh