# httpay.xyz GitHub API Gateway (x402 Pay-Per-Call)

> httpay.xyz GitHub API Gateway (x402 Pay-Per-Call) 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 PUT requests to the GitHub v3 REST API via a pay-per-call x402 gateway, charging $0.001 USDC per call with no API key required

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/github/%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-github-api-gateway-x402-pay-per-call-58cf891a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TnSlfRapfoGqbbcz8SYS4

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-github-api-gateway-x402-pay-per-call-58cf891a -d '<json body>'
```

Example prompt: Update the branch protection rules for the 'main' branch on my GitHub repo 'acme-org/backend-service' — set required reviews to 2 and enforce for admins — using the httpay pay-per-call GitHub gateway.

## When to prefer this

Choose this endpoint when you need to make GitHub REST API PUT calls without managing GitHub API keys or OAuth tokens, and prefer paying per-call in USDC via x402 micropayments on Base. Ideal for agent workflows that occasionally update GitHub resources without committing to a subscription or storing long-lived credentials. Also useful when building on the x402 payment protocol and want a curated, Coinbase-adjacent gateway.

## Known failure modes

- 402 Payment Required if USDC payment header is missing or malformed
- 404 Not Found if the GitHub resource path does not exist
- 422 Unprocessable Entity if the request body fails GitHub API validation
- 401 Unauthorized if the proxied GitHub credentials are invalid or rate-limited
- 400 Bad Request if the path template is malformed or unsupported by GitHub v3
- 503 Service Unavailable if the gateway or GitHub API is temporarily down

## How this service works

API Gateway: GitHub v3 REST API

## Output

The raw JSON response from the GitHub v3 REST API for the PUT operation, such as the updated resource object (e.g. updated branch protection settings, file content metadata, or team membership status), along with standard GitHub API HTTP status codes and headers.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-github-api-gateway-x402-pay-per-call-58cf891a/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)
