How to get started with Fly.io Machines API on Zapier

Fly.io Machines API and Zapier manage Fly Apps, Machines, and Volumes. Trigger on new machines or volumes and automate create, start, stop, update, or delete steps.

Prerequisites

To use the Fly.io Machines API app on Zapier, you must have:

  • A Fly.io account with access to the organizations and apps you need to automate.
  • A Fly.io API token with permission for the Machines API operations you need (for example creating or managing apps, machines, or volumes).
Find your Fly.io API token

In the Fly.io dashboard, go to Account → Access Tokens and create a token with a scope that covers the Machines API actions you use.

Alternatively, install the Fly CLI, run fly auth login, and use fly tokens create with the subcommand that fits your scope.

Connect Fly.io Machines API to Zapier

To create an app connection to Fly.io Machines API on Zapier:

  1. Go to the Apps page.
  2. Click + Add connection.
  3. A new dialog box will appear. Search for and select Fly.io Machines API.
  4. Click Add connection.
  5. A Connect an Account page will open in a browser tab or window.
  6. In the API Token field, enter your Fly.io API token.
  7. Click Yes, Continue to Fly.io Machines API.

Your Fly.io account is now successfully connected to Zapier.

About Fly.io Machines API's app

Triggers, searches, and actions

Triggers
  • New Machine (Polling) - Triggers when a new Fly Machine is created in your app.
  • New Volume (Polling) - Triggers when a new persistent volume is created in a Fly.io app.
Searches
  • Find App - Finds a Fly.io app by its name.
  • Find Machine - Finds a Fly Machine by its ID.
  • Find Volume - Finds a Fly.io volume by its ID.
Actions
  • Create App - Creates a new Fly.io app.
  • Create Machine - Creates a new Fly Machine in your app.
  • Create Volume - Creates a new persistent storage volume for a Fly.io app.
  • Delete App - Deletes a Fly.io app and all its Machines.
  • Delete Machine - Permanently deletes a Fly Machine. This action cannot be undone.
  • Delete Volume - Permanently deletes a Fly.io volume. This action cannot be undone.
  • Extend Volume - Increases the size of a Fly.io volume. Volumes can only be extended, not shrunk.
  • Start Machine - Starts a stopped Fly Machine.
  • Stop Machine - Stops a running Fly Machine.
  • Suspend Machine - Suspends a running Fly Machine, saving its memory state for faster resume. The next start will attempt to resume from the snapshot.
  • Update Machine - Updates a Fly Machine configuration, including its container image. Use this to deploy new releases.

Limitations

  • Machines API rate limits apply per action and per machine or app. Most actions are limited to about 1 request per second with a short burst up to 3 requests per second; Get Machine allows higher throughput. App deletions are limited to 100 per minute.
  • The Fly.io API returns standard HTTP errors (for example 401 for invalid tokens, 404 for missing resources). Heavy automation may need filters or delays to stay within limits.

Templates

View all of Fly.io Machines API's templates

Additional Fly.io Machines API resources

Was this article helpful?
0 out of 0 found this helpful