Skip to main content
POST
Run a command in a sandbox

Authorizations

Authorization
string
header
required

API key

Path Parameters

sid
string<uuid>
required

Sandbox UUID

Query Parameters

wait
boolean
default:false

Hold the request for a completed start or exec result

Body

application/json
command
string
required

Shell command, run via /bin/sh -c

command_tty
boolean

Allocate a TTY for the command

env
object

Extra environment variables for this command

timeout_seconds
integer<int64>

Server-side execution deadline; the exec reports timed_out past it

Response

The exec, terminal (result fields set) or still running

success
boolean
required
Example:

true

data
object
required