# HTTPay Cloudflare API Gateway

> HTTPay Cloudflare API Gateway is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-12).

Proxies POST requests to the Cloudflare API through a pay-per-call x402 payment gateway at $0.002 USDC per call

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/cloudflare/%7B*path%7D/*
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-5449c322
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fsLkiu10yAcRCnZFPolgR

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

Example prompt: Can you call the Cloudflare API to list all DNS records for zone ID abc123xyz — route it through the HTTPay gateway so I can pay per call with USDC instead of managing Cloudflare credentials myself?

## When to prefer this

Choose this endpoint when you need programmatic access to the Cloudflare API but want to pay per call in USDC via x402 micropayments rather than managing Cloudflare API tokens or subscriptions. Useful for agents making occasional or unpredictable Cloudflare API calls, or when operating in an environment where paying per-use is preferable to maintaining long-term API credentials.

## Known failure modes

- Payment not attached or insufficient USDC balance returns 402 Payment Required
- Invalid or malformed Cloudflare API path returns 404 or 400
- Cloudflare API authentication failure returns 401 or 403 from upstream
- Cloudflare rate limiting triggers 429 from upstream
- Network timeout if Cloudflare API is slow to respond
- Malformed request body causes Cloudflare to return 400 Bad Request

## How this service works

API Gateway: Cloudflare API

## Output

Returns the raw JSON response from the Cloudflare REST API for the specified path, including DNS records, zone details, worker scripts, analytics, or any other Cloudflare resource accessed via the proxied path.

## More

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