# httpay.xyz API Gateway: Swagger Petstore Demo

> httpay.xyz API Gateway: Swagger Petstore Demo is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-18).

Proxies HTTP POST requests to the Swagger Petstore demo API through a pay-per-call x402 gateway

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/petstore/%7B*path%7D/*?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-80022af4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IsntH2RPWLaeJq-MTbSUa

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

Example prompt: Route a POST request to the Swagger Petstore demo API — specifically the /pet endpoint with a new pet body — through the httpay x402 gateway so I can test micropayment-gated API proxying.

## When to prefer this

Use this endpoint when you want to test or demonstrate x402 micropayment-gated API proxying using a well-known, publicly documented demo API (Swagger Petstore). Prefer it for learning or prototyping x402 payment flows rather than for production Petstore data.

## Known failure modes

- Invalid or missing path segment returns 404
- Petstore demo API unavailable causes 502/503
- Malformed request body returns 400 from underlying Petstore API
- x402 payment not fulfilled results in 402 Payment Required
- Path wildcard mismatch returns routing error

## How this service works

API Gateway: Swagger Petstore demo

## Output

The response from the Swagger Petstore demo API as proxied through the httpay gateway, including standard Petstore JSON responses (pet, order, or user objects depending on the path called).

## More

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