X402 · pay for a resource
x402Fetch a web resource that charges per request (HTTP 402, x402) through Regent. Hosts: any public host. Regent reads the price, asset and recipient from the resource's 402, decides under the owner's USDC budget, signs the payment from the connected wallet and checks the transfer on chain. Test networks only. The agent never holds a wallet or sets the price. Give path as /.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for a POST resource. | |
| path | Yes | The resource as <host>/<path>[?query], https assumed. | |
| facts | No | Verified facts the policy keys on (object). | |
| intent | No | One-line reason for this call, recorded in the audit. | |
| method | No | GET | |
| idempotency_key | No | Retry handle: the same key resumes the same decision. |