project_reference to identify the project to bill; an environment can also supply project context and initial variables.
1. Create a sandbox session
Create a session withPOST /sandbox-sessions:
create-session.sh
SESSION_ID to the response’s id value.
2. Check readiness
CallGET /sandbox-sessions/{session_id}/readyz before sending a command:
check-readiness.sh
3. Run a command
Run a command withPOST /sandbox-sessions/{session_id}/commands/run:
run-command.sh
Verify the result
Confirm that the command result contains the working directory printed bypwd. A created session alone does not confirm that a command succeeded.
4. Delete the session
CallDELETE /sandbox-sessions/{session_id} after saving any files you need:
delete-session.sh