Authorize an x402 payment
check_paymentDecide whether a specific x402 payment should go through: returns allow true/false with reasons. Checks the endpoint's trust verdict, that the amount is within your cap and not above the monitored price, and that the payTo wallet matches the one we've observed (catches swapped or hijacked wallets). Use it right before paying, with the amount, payTo, and network from the endpoint's 402 quote; pay only when allow is true. Use check_endpoint instead if you only want an endpoint's grade without a quote in hand. Read-only and free; it doesn't make or block the payment itself, your agent does. If allow is false, report the reasons to the user rather than paying. For per-agent keys, enforced spend limits, and signed receipts, teams use the paid /v1/authorize API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the x402 endpoint you are about to pay, including path | |
| payTo | No | Wallet address from the endpoint's 402 quote | |
| amount | No | Amount about to be paid, atomic units (USDC has 6 decimals: 10000 = $0.01) | |
| network | No | Network from the quote, e.g. eip155:8453 | |
| maxAmount | No | Your hard cap for this payment in atomic units (USDC: 1000000 = $1). Payments above it are denied. | |
| allowCaution | No | false = deny endpoints with a caution verdict too, not just avoid (default true) | |
| requireVerified | No | true = only allow endpoints that delivered on a real test payment (default false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| allow | Yes | Pay only when true | |
| grade | No | ||
| notes | No | ||
| score | No | ||
| reasons | Yes | Why it was allowed or denied | |
| verdict | No | proceed | caution | avoid | free | insufficient_data | |
| delivery | No | ||
| forTeams | No | Short note about team plans (per-agent keys, spend limits, audit trail) | |
| observed | No | The latest payment quote our monitor saw | |
| monitored | Yes | Whether the endpoint is in the monitored catalog | |
| payToMode | No | ||
| reviewable | No | Denied only for reasons a person may approve | |
| declaredPayTo | No | Payout wallets the seller declared itself | |
| walletUnconfirmed | No |