# httpay.xyz Fly.io Machines API Gateway

> httpay.xyz Fly.io Machines API Gateway 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 POST requests to the Fly.io Machines API through an x402 pay-per-call gateway, enabling programmatic management of Fly.io machines and infrastructure.

## 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-b4b3cacf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_01nDv8fON-eAcuR2wJdbe

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-b4b3cacf -d '<json body>'
```

Example prompt: Create a new Fly.io machine in my app 'my-app-name' using the image 'flyio/hellofly:latest' with 1 shared CPU and 256MB RAM — hit the Fly.io Machines API endpoint POST /v1/apps/my-app-name/machines.

## When to prefer this

Use this endpoint when you need to interact with the Fly.io Machines API in a pay-per-call context without managing API keys or subscriptions, especially in agentic workflows where on-demand infrastructure management is required via x402 micropayments.

## Known failure modes

- Invalid or missing Fly.io API path returns 404 or routing error
- Malformed request body causes Fly.io to return 400 Bad Request
- Missing or invalid Fly.io authentication credentials cause 401 Unauthorized from upstream
- Payment failure or insufficient USDC balance causes x402 gateway to reject with 402
- Fly.io rate limiting or quota exceeded returns 429
- Non-existent app or machine ID returns 404 from Fly.io

## How this service works

API Gateway: Fly.io Machines API

## Output

Returns the raw JSON response from the Fly.io Machines API for the proxied path, including machine state, ID, configuration, and status fields as returned by Fly.io.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-b4b3cacf/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)
