Command Palette
Search for a command to run

Execute code in a sandbox

Run code inside an existing sandbox and return stdout, stderr, and exit code

POST
/auth/v1/seed/{namespace}/sandbox/{id}/exec

Run code inside an existing sandbox synchronously. Blocks until execution completes and returns the full result inline.

Path parameters

namespace type: string (required)
The namespace (user or organization) the sandbox belongs to.
id type: string (required)
The sandbox ID.

Body parameters

code type: string (required)
The 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`.