---
title: "Execute code in VM"
url: https://hexelstudio.com/docs/api/compute/vms/execute
---

# Execute code in VM

**POST** `/compute/v1/vms/{id}/execute`

Runs code or shell commands in an allocated sandbox VM

## Path parameters

- `id: string`

  VM ID

## Returns

`200` OK

## Example

```bash
curl --request POST \
  --url 'https://compute.hexelstudio.com/compute/v1/vms/{id}/execute'
```
