LogoFreestyle
API ReferenceVm

Exec_await

Execute command in VM and await result

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

Path Parameters

vm_id*string

The ID of the VM to execute the command in

Request Body

application/json

command*string
terminal?string|null
timeoutMs?integer|null
Formatint64
Range0 <= value

Response Body

application/json

application/json

curl -X POST "https://api.freestyle.sh/v1/vms/string/exec-await" \  -H "Content-Type: application/json" \  -d '{    "command": "string"  }'
{
  "stdout": "string",
  "stderr": "string",
  "statusCode": 0
}
{
  "error": "string",
  "message": "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.