# revert.wtf x402 Payment Explainer

> revert.wtf x402 Payment Explainer is a paid API for AI agents from revert.wtf, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Explains the x402 payment requirements and request details for a given API endpoint by parsing raw HTTP 402 response data.

## Facts

- Endpoint: POST https://revert.wtf/api/x402/explain
- 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/revert-wtf-x402-payment-explainer-a809fe80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7lUX9sgE1DLa_hz776p9F

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 revert-wtf-x402-payment-explainer-a809fe80 -d '<json body>'
```

Example prompt: I got a 402 response from an API and I'm not sure what payment it's asking for — can you explain the x402 payment requirements from this raw response: 'X-Payment-Required: ...'?

## When to prefer this

Use this endpoint when an agent receives an HTTP 402 response and needs to understand what x402 payment is required before proceeding — particularly useful for programmatically discovering payment options, amounts, and accepted tokens without manual parsing. Prefer this over manual parsing or the sibling payment-selection endpoint when the goal is to first understand requirements before committing to a payment option.

## Known failure modes

- Missing or empty 'raw' field returns an error or empty explanation
- Malformed or non-x402 raw input may produce incomplete or incorrect explanations
- Unrecognized x402 schema versions may not parse correctly

## How this service works

Paid hosted deterministic explanation for EVM/RPC/wallet/UserOperation/x402 errors. Send raw pasted error JSON, text, or revert bytes.

## Output

Returns a structured explanation of the x402 payment requirements embedded in the raw 402 response, including accepted payment options, amounts, currencies, and request details needed to fulfill the payment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "raw": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/revert-wtf-x402-payment-explainer-a809fe80/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from revert.wtf](https://www.zero.xyz/host/revert.wtf/llms.txt)
