Skip to content

Containers · 3 November 2026

Fly Machines API

Containers now accept Fly's Machines REST API at /compat/fly/v1, so clients written for api.machines.dev run against Runtime after you change only the base URL and the token: use https://<your API host>/compat/fly as the base URL and a Runtime API key as the bearer token. For flyctl's Machines calls, set FLY_FLAPS_BASE_URL to the same base URL. Each machine is a Container with one copy, labeled with its app. Creating, showing, updating and deleting a machine, listing an app's or an organization's machines, starting, stopping and suspending a machine, and reading and writing its metadata in all six forms are supported. A machine's image, env, guest.cpus, guest.memory_mb, init.cmd, init.entrypoint, metadata, one service's internal_port, one mount and restart.policy (no or always) map to the Container's spec; any other config field returns 400 with a message naming it. As on Fly, an update replaces the machine's whole config, so a field it omits is removed; listing machines returns every machine, not one page; and a machine ID is found only under its own app, so a request under another app returns 404. auto_destroy: true returns 400. Restart, wait, events, versions, exec, signal, processes, leases, cordon and the memory routes are not yet available and return 404.

Same day.

Cut your cloud billby 75%.

No card to start. Billed by the second after.

Start free, no card