Skip to main content

Endpoint: POST /api/v1/sandboxes/{name}/exec

namestringrequired#
Sandbox name
namespacestring#
Namespace

Default: "default"

commandstringrequired#
Shell command to execute

Semantics#

  • exit_code: 0 on success, non-zero when the command fails.
  • stdout/stderr: Raw streams captured from the process; may include newlines.
  • duration_ms: Client-observed duration including stream lifecycle.

Examples#

Error example (non-zero exit):