Exec
Execute a command inside a sandbox
Runs a command inside the sandbox and waits for it to finish, returning stdout, stderr, and exit code. A paused sandbox is resumed automatically before the command runs and stays active afterward.
POST
Execute a command inside a sandbox
Documentation Index
Fetch the complete documentation index at: https://docs.superserve.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Path Parameters
The unique identifier of the sandbox.
Body
application/json
Command to execute. Wrapped in /bin/sh -c unless args is provided.
Minimum string length:
1If provided, command is used as the binary and args as arguments (no shell wrapping).
Environment variables for the command.
Working directory (default /home/user).
Timeout in seconds.
Previous
Execute a command and stream output via SSERuns a command and streams stdout/stderr chunks as Server-Sent Events.
Each event is a JSON payload. The final event includes `exit_code` and
`finished: true`. A paused sandbox is resumed automatically before the
command runs and stays active afterward.
Next
Execute a command inside a sandbox