Execute command with auto-spawned sandbox

View as Markdown

Run a command over HTTP by automatically provisioning (or reusing) a sandbox session. Use ephemeral=true for stateless execution. Use workspace (name or UUID) for persistent workspace-backed execution.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
SandboxExecPersistentRequestDocobjectRequired
OR
SandboxExecEphemeralRequestDocobjectRequired

Response

Command executed
backgroundboolean
commandstring
ephemeralboolean
kindstring
session_idstring
statusstring
command_idstring or null
exit_codeinteger or null>=0
outputstring or null
output_truncatedboolean or null
pidlong or null
workspacestring or null
workspace_idstring or null

Errors