Skip to main content

Prerequisites

You need a VMArea account and at least one available billing credit to provision a VM.
1

Create an API token

Sign in to vmarea.com/dashboard and navigate to Settings → API Keys. Create a new token, select the scopes you need, and optionally set an expiry date.
The secret is shown only once. Copy it immediately and store it in an environment variable or secrets manager.
See Scopes & permissions for a full list of available scopes and what they grant.
2

List available plans and regions

Before creating a VM, fetch the catalog to find a valid planId, regionId, and osTemplateId. Catalog reads require any valid token — no specific scope needed.
3

Create a VM

A successful response returns 201 with { "success": true, "data": { "id", "status", ... } }. The VM starts provisioning immediately.
4

Poll for status

VM creation is asynchronous. Poll until status reaches RUNNING (or FAILED):
Subscribe to a vm.created webhook to avoid polling entirely. See Webhooks.
5

Run lifecycle actions

Once running, control your VM with action endpoints:
All lifecycle actions require the vms:write scope.

Next steps

See the API reference for the full surface: firewall rules, private networks, SSH keys, backups, snapshots, and billing endpoints.