Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 2.21 KB

index.mdx

File metadata and controls

33 lines (19 loc) · 2.21 KB
title Machines API
description Manage apps, Machines, volumes, certificates and tokens with the Fly.io Machines REST API. Find each resource reference, the OpenAPI spec and the fly-go client.
source_url https://fly.io/docs/machines/api/

Illustration by Annie Ruygt of a group of hovering servers with eyes

The Fly Machines REST API provides resources to provision and manage Fly Apps, Fly Machines, and Fly Volumes.

Client libraries

You can call the Machines API from any HTTP client. The official packages from Fly.io:

  • fly-go: Go client for the Machines API and the Fly.io GraphQL API. It's the library flyctl is built on. Module github.com/superfly/fly-go.

  • Other languages: generate a client from the OpenAPI spec with a tool like openapi-generator.

Fly Sprites is a separate API (api.sprites.dev) with its own SDKs: @fly/sprites for JavaScript and TypeScript, sprites-py for Python, sprites-go for Go, sprites for Elixir, and an MCP server.