Execute code in a sandbox
Run code inside an existing sandbox and return stdout, stderr, and exit code
POST
Run code inside an existing sandbox synchronously. Blocks until execution completes and returns the full result inline.
Path parameters
namespace
type: string
requiredThe namespace (user or organization) the sandbox belongs to.
id
type: string
requiredThe sandbox ID.
Body parameters
code
type: string
requiredThe code to execute.
language
type: string
Language override. Defaults to the sandbox language if omitted.
deps
type: string[]
Dependencies to install before running (e.g., ["numpy", "pandas"]). Installed each time in ephemeral mode; persisted across execs in stateful mode.
timeout_secs
type: integer
Execution timeout in seconds. Overrides the sandbox-level `timeout_ms` if set.
resource_limits
type: object
Per-execution resource overrides. Same fields as sandbox-level `resource_limits`.
Previous → Execute code
Next Submit a job →