Skip to content

API

Catalog API: regions, sizes and images

List the regions, sizes and images your organization can create VMs with, which sizes have room right now, and the defaults the API uses.

Three read-only lists: what you can pass as region, size and image when you create a VM. Every role can read them. They list what your organization may use, so build your scripts on them rather than on hard-coded values.

Regions

GET /regions · Action: account.read

curl https://flockvm.com/api/v1/regions \
  -H "Authorization: Bearer $FLOCKVM_API_KEY"
{
  "regions": [
    {
      "id": "gra",
      "name": "France",
      "country": "France",
      "zone": "EU",
      "environments": true,
      "default": true,
      "arch": "x86_64",
      "sizes_available": ["small", "default", "large"]
    }
  ]
}
idstring

What region takes: gra (France), the one region today.

environmentsboolean

Whether environments and per-VM variables work in this region. Elsewhere, environment must be left out or "none", and env empty.

defaultboolean

The region POST /vms uses when you leave region out.

archstring

The CPU architecture of the region's VMs: x86_64.

sizes_availablearray of strings or null

The sizes the region's host has room for right now, the same answer as the size picker of the New VM form. null when the host could not say. A size missing here would answer 409 capacity: pick a smaller one, or try again later.

See Regions for what stays in each region.

Sizes

GET /sizes · Action: account.read

curl https://flockvm.com/api/v1/sizes \
  -H "Authorization: Bearer $FLOCKVM_API_KEY"
{
  "sizes": [
    { "name": "small", "vcpu": 2, "memory_gb": 4, "disk_gb": 50, "price_hour": 0.016 },
    { "name": "default", "vcpu": 4, "memory_gb": 8, "disk_gb": 50, "price_hour": 0.032 },
    { "name": "large", "vcpu": 8, "memory_gb": 16, "disk_gb": 110, "price_hour": 0.064 },
    { "name": "xlarge", "vcpu": 16, "memory_gb": 32, "disk_gb": 250, "price_hour": 0.18 }
  ]
}

name is what size takes. price_hour is in USD, billed per second while the VM is starting or running. A VM keeps the price it was created with. See Sizes and Pricing.

Images

GET /images · Action: account.read

curl https://flockvm.com/api/v1/images \
  -H "Authorization: Bearer $FLOCKVM_API_KEY"
{
  "images": [
    {
      "id": "ubuntu-26.04-agent",
      "label": "Agent",
      "description": "Ubuntu 26.04 with Node, Python, Go, Rust, Java, Docker, Playwright browsers, Claude Code, Codex, Gemini, OpenCode, Cursor",
      "ssh_user": "user",
      "default": true
    },
    {
      "id": "ubuntu-26.04",
      "label": "Minimal",
      "description": "Ubuntu 26.04 with Node.js 22, Python, Docker and git",
      "ssh_user": "root",
      "default": false
    }
  ]
}

id is what image takes. ssh_user is the user you log in as. The image marked "default": true, the Agent image, is the one POST /vms uses when you leave image out. Only the Ubuntu 26.04 images are listed: the Ubuntu 24.04 ones are no longer offered, though VMs created from them keep their image id. See Images.

Pick a size that fits now

curl -s https://flockvm.com/api/v1/regions \
  -H "Authorization: Bearer $FLOCKVM_API_KEY" \
  | jq -r '.regions[] | select(.default) | .sizes_available[]?'
small

Errors

These routes only fail on the key: 401 when it is missing, revoked or expired, 403 insufficient_scope when it lacks account.read (see Errors). A host that does not answer leaves sizes_available at null rather than failing the request.

Next steps