Execute command with auto-spawned sandbox
Execute command with auto-spawned sandbox
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 an explicit persistent target. When workspace is omitted, free-tier accounts execute ephemerally and paid accounts resolve or auto-create the account default sandbox workspace.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
SandboxExecPersistentRequestDoc
OpenAPI documentation schema for workspace-backed POST /v1/exec.
OR
SandboxExecEphemeralRequestDoc
OpenAPI documentation schema for ephemeral POST /v1/exec.
Response
Command executed
background
command
ephemeral
kind
session_id
status
command_id
exit_code
output
output_truncated
pid
workspace
workspace_id
Errors
400
Bad Request Error
404
Not Found Error