# 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.

- URL: https://flockvm.com/docs/api/catalog
- Section: API
- Last updated: 2026-11-10

Three read-only lists: what you can pass as `region`, `size` and `image` when you [create a VM](https://flockvm.com/docs/api/vms#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`

```bash
curl https://flockvm.com/api/v1/regions \
  -H "Authorization: Bearer $FLOCKVM_API_KEY"
```

```json
{
  "regions": [
    {
      "id": "gra",
      "name": "France",
      "country": "France",
      "zone": "EU",
      "environments": true,
      "default": true,
      "arch": "x86_64",
      "sizes_available": ["small", "default", "large"]
    }
  ]
}
```

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

`environments` (boolean): Whether [environments](https://flockvm.com/docs/api/environments) and per-VM variables work in this region. Elsewhere, `environment` must be left out or `"none"`, and `env` empty.

`default` (boolean): The region `POST /vms` uses when you leave `region` out.

`arch` (string): The CPU architecture of the region's VMs: `x86_64`.

`sizes_available` (array 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](https://flockvm.com/docs/vms/regions) for what stays in each region.

## Sizes

`GET /sizes` · Action: `account.read`

```bash
curl https://flockvm.com/api/v1/sizes \
  -H "Authorization: Bearer $FLOCKVM_API_KEY"
```

```json
{
  "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](https://flockvm.com/docs/vms/sizes) and [Pricing](https://flockvm.com/docs/billing/pricing).

## Images

`GET /images` · Action: `account.read`

```bash
curl https://flockvm.com/api/v1/images \
  -H "Authorization: Bearer $FLOCKVM_API_KEY"
```

```json
{
  "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](https://flockvm.com/docs/vms/images).

## Pick a size that fits now

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

```text
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](https://flockvm.com/docs/api/overview#errors)). A host that does not answer leaves `sizes_available` at `null` rather than failing the request.

## Next steps

- [Create a VM](https://flockvm.com/docs/api/vms#create-a-vm): Use them in `POST /vms`.
- [Limits](https://flockvm.com/docs/vms/limits): Capacity, quotas and what is not supported.
