# httpay.xyz Coin Flip

> httpay.xyz Coin Flip is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Performs a simulated blockchain-themed coin flip and returns a heads or tails result via a paid API call

## Facts

- Endpoint: POST https://httpay.xyz/api/coin-flip?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-af0fe66e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qHDJsNvzqDg1_gDwLjSqN

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

Example prompt: Flip a coin for me and tell me if it lands heads or tails.

## When to prefer this

Use this endpoint when you need a simple, novelty blockchain-styled random binary outcome (heads or tails) and are willing to pay a micro-transaction per call; suitable for games, decision tools, or demo purposes involving x402 micropayments

## Known failure modes

- Payment of 0.001 USDC not provided — HTTP 402 returned
- Invalid or malformed POST request body
- Service unavailable or timeout
- Network error reaching httpay.xyz endpoint

## How this service works

Flip a blockchain-verified* coin (*not actually verified)

## Output

Returns a coin flip result indicating either heads or tails, presented as a blockchain-flavored random outcome

## Example request

```json
{
 "method": "GET"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Flip a blockchain-verified* coin (*not actually verified)"
 }
}
```

## More

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