LogoFreestyle
API Reference/V m

Exec_await

Execute command in VM and await result

POST/v1/vms/{vm_id}/exec-await

Request Body

application/jsonRequired
commandRequiredstring
terminalstring | null

Path Parameters

vm_idRequiredstring

The ID of the VM to execute the command in

Response Body

curl -X POST "https://api.freestyle.sh/v1/vms/<string>/exec-await" \
  -H "Content-Type: application/json" \
  -d '{
    "command": "string",
    "terminal": "string"
  }'

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.