Get a background command
GET
Status and output of a command started with background: true. Readable while the sandbox is starting or running.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
sandboxIdstringrequiredSandbox ID.
commandIdstringrequiredBackground command ID, as returned when it was started.
Responses
200The command.
commandobjectrequiredA background command.
11 properties
idstringrequiredcommandstringrequiredstatusstringrequiredunknown: the machine restarted its process supervisor and lost track of it; the output shown is what was written to disk.One ofrunningfinishedunknownexitCodeintegerrequiredstdoutstringrequiredThe last 1 MiB of standard output.
stderrstringrequiredThe last 1 MiB of standard error.
stdoutTruncatedbooleanstderrTruncatedbooleanstartedAtstring<date-time>finishedAtstring<date-time>createdAtstring<date-time>required
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Sandbox or command not found.
codestringrequiredmessagestringrequireddetailsobject
409`sandbox_not_running`: the sandbox is stopped, stopping, failed or deleted; resume it first. `sandbox_not_ready`: it is still starting and did not become ready in time; retry.
codestringrequiredmessagestringrequireddetailsobject