Execute Sandbox command
Runs the command synchronously by default (timeout configurable via timeoutSeconds, 600s cap). With detached: true the command starts in the background and a process id is returned immediately; poll /sandboxes/{sandboxId}/commands/{processId} for status and logs. Returns 400 invalid_timeout when timeoutSeconds is not an integer in 1-600. Returns 409 boat_starting (retryable) while the sandbox is still provisioning — wait until the sandbox state is ready before running commands. Command execution is never retried automatically: a 502 boat_direct_failed means the command may already be running on the sandbox.
Authorizations
Boat bearer token in the form boat_.... Service API keys authenticate sandbox operations.
Path Parameters
Public Sandbox id returned by create/list/get sandbox calls.
^bx_[23456789abcdefghjkmnpqrstuvwxyz]{8}$Body
Relative working directory inside the sandbox work directory.
Command timeout in seconds. Values outside 1-600 are rejected with a 400 invalid_timeout error.
1 <= x <= 600Start the command in the background and return a process id immediately instead of waiting for it to finish. Output goes to a log file on the sandbox; poll the status endpoint for it.
Response
Command result (synchronous) or process start confirmation (detached).
- Option 1
- Option 2
true
Stable success envelope discriminator added by v1.
"command.finished"