Run a command
Starts a command or reconnects to one with the same idempotency key. The response is newline-delimited JSON. Its first event is started. Output data and terminal repaint data are base64. The highest stdout and stderr seq values are reconnect cursors. exit is terminal. A heartbeat can appear after 30 seconds without another event.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Exec id for retries and reconnects. It can contain only letters, digits, -, ., _, and ~; it cannot equal . or ..; and it must match idempotency_key when both are sent.
1^[A-Za-z0-9._~-]+$Lets an organization admin operate a private Sailbox someone else created. Say why in plain text; the reason goes into your organization's audit log, and the operation is refused without it. Ignored on Sailboxes you could already operate.
Pause, resume, sleep, scheduled wake, upgrade, and terminate accept an override. Attaching or clearing an HTTP policy accepts one too. Running commands and moving files accept one through an SDK or the CLI. Publishing and unpublishing ports, adding and removing custom domains, checkpointing, and creating from a checkpoint stay with the creator.
^[ -~]*$Path Parameters
Id of the Sailbox, as returned by create. It is sb_ followed by a UUID.
Body
Shell command string or argument array. Shell features apply only to a string.
1Command timeout in seconds.
x >= 1Detach a string command from standard input and output.
Working directory for a string command.
Keep standard input open for writes.
Run the command in a pseudo-terminal. This implies open_stdin.
Initial TERM value. A PTY defaults to xterm-256color.
Initial PTY width. Zero uses the guest default.
x >= 0Initial PTY height. Zero uses the guest default.
x >= 0Environment values for the command. Names must match [A-Za-z_][A-Za-z0-9_]*. Names and values cannot contain a NUL character.
Guest user in the same form as the SDK user option.
Stable exec id for a retry or stream reconnect. A supplied key can contain only letters, digits, -, ., _, and ~, and it cannot equal . or ...
^[A-Za-z0-9._~-]*$Highest stdout sequence already received.
x >= 0Highest stderr sequence already received.
x >= 0Response
Exec event stream.
The response is of type string.