# httpay.xyz API Gateway: Fly.io Machines API

> httpay.xyz API Gateway: Fly.io Machines API is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Proxies authenticated requests to the Fly.io Machines API, enabling management of Fly.io apps, machines, and infrastructure via a pay-per-call micropayment gateway.

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/flyio/%7B*path%7D
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-api-gateway-fly-io-machines-api-da64b0be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v7mctfpKH3wFjivgkzgve

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability httpay-xyz-api-gateway-fly-io-machines-api-da64b0be -d '<json body>'
```

Example prompt: List all running machines for my Fly.io app called 'my-api-app', and then restart the one that's currently in a stopped state.

## When to prefer this

Use this endpoint when you need to manage Fly.io machines and apps programmatically without holding a Fly.io API token yourself, paying only per call via x402 USDC micropayments. Ideal for AI agents that need to provision, scale, or monitor Fly.io infrastructure on demand without long-term credential management.

## Known failure modes

- Payment not received or insufficient USDC balance — gateway returns 402 Payment Required
- Invalid or unsupported Fly.io API path — returns 404 or 400 from underlying Fly.io API
- Missing or malformed request body for machine creation — Fly.io returns 422 Unprocessable Entity
- Fly.io API rate limits exceeded — returns 429 Too Many Requests
- Machine or app not found — Fly.io returns 404 Not Found
- Gateway timeout if Fly.io API is slow to respond

## How this service works

API Gateway: Fly.io Machines API

## Output

Returns the raw Fly.io Machines API JSON response for the requested operation — such as a list of machines with their IDs, states, regions, and configs, or a confirmation object after creating/updating/deleting a machine.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-api-gateway-fly-io-machines-api-da64b0be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
