Execute code
Run code without managing a sandbox — Outpost picks or creates one automatically
POST
Submit code for synchronous execution without managing a sandbox lifecycle. Outpost selects or creates an appropriate sandbox, runs the code, and returns the result.
Path parameters
namespace
type: string
requiredThe namespace (user or organization) to execute in.
Body parameters
language
type: string
requiredRuntime language (e.g., `python`, `node`, `rust`, `go`).
code
type: string
requiredThe code to execute.
deps
type: string[]
Dependencies to install before running.
resource_limits
type: object
Resource limits. Same fields as sandbox-level `resource_limits`.
sandbox_id
type: string
Reuse a specific existing sandbox instead of auto-selecting.
Previous → Get a sandbox
Next Exec in sandbox →