Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Path Parameters

vm_id
string<uuid>
required

VM ID

Body

application/json

Request body for POST /api/vm/{vm_id}/exec

command
string[]
required

Command and arguments to execute.

env
object | null

Optional environment variables to set for the process.

exec_id
string<uuid> | null

Optional exec identifier for tracking.

stdin
string | null

Optional stdin payload passed to the command.

timeout_secs
integer<int64> | null

Timeout in seconds (0 = no timeout).

Required range: x >= 0
working_dir
string | null

Optional working directory for the command.

Response

NDJSON stream of stdout/stderr chunks