Overview

The VM Sessions API provisions long-lived virtual machine sessions where the VM stays alive across multiple command executions. This preserves filesystem state, installed packages, and running processes between calls, unlike one-shot sandbox execution.

Base URL

All endpoints require a valid Bearer token in the Authorization header. See Authentication for details.

Endpoints

Provision VM session

Request body:
Field reference: Response:
If no VM driver is available on the API host, the endpoint returns 503 Service Unavailable rather than falling back to unsandboxed execution.

Get session

Response:

Execute command

Request body:
Response:

Destroy session

Response:

Error codes