Fly.io Machines API
The Fly.io Machines API is a low-level REST interface for provisioning and managing Fly Machines, which are fast-booting virtual machines that run on Fly.io's global edge infrastructure. It provides endpoints for creating, starting, stopping, and destroying Machines, as well as managing Fly Apps, Fly Volumes, and TLS certificates. The API is accessible publicly at https://api.machines.dev or internally within the Fly.io private WireGuard network at http://_api.internal:4280.
Fly.io Machines API is one of 9 APIs that fly-io publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Deployment, Edge Computing, Infrastructure, Platform, and Virtual Machines. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.
This API exposes 14 operations across 9 paths, and defines 12 schemas. It is described by OpenAPI 3.1.0, at version 1.0.
Requests are made against 2 base URLs: https://{provider_base_url}, https://api.fly.io.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 3
Fly.io Machines API declares
3 security schemes
for authenticating requests.
It accepts HTTP bearer tokens (flySharedSecret).
It accepts HTTP bearer tokens (oauthBearerAuth).
An API key is passed in the header as X-Fly-Signature (webhookHmac).
By default, every request must be authenticated.
flySharedSecret— Shared secret provided by Fly.io to the extension provider. Fly.io includes this secret in an Authorization Bearer header on all requests to the provider's API…oauthBearerAuth— Fly.io OAuth access token obtained from the token exchange endpoint.webhookHmac— HMAC-SHA256 signature of the raw request body, computed using the webhook signing secret. Recipients must verify this signature before processing the payload.
Paths & Operations 14
Across 9 paths, the API surfaces 14 operations — 2 DELETE, 4 GET, 8 POST. Each is listed below with its method, path, parameters, and response codes.
Core operations for creating, reading, updating, starting, stopping, suspending, and deleting Fly Machines. Machines are fast-booting virtual machines deployed on Fly.io's global…
Schemas 12
The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are MachineConfig (11 properties), Machine (9 properties), MachineCheck (7 properties), MachineService (4 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from fly-io 8
Other APIs fly-io publishes across the network.