payagents_pay_url
Access paywalled APIs by executing HTTP requests and automatically resolving L402 lightning or x402 USDC payment challenges within your spending policy.
Instructions
Execute a request to an HTTP API endpoint or paywalled resource, automatically resolving and paying any HTTP 402 / L402 Lightning or x402 Base USDC micro-payment challenges within your spending policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the API endpoint or paywalled resource to access. | |
| body | No | Optional request payload/body to send with the request. | |
| method | No | HTTP method to use (defaults to GET). | GET |
| headers | No | Optional additional HTTP headers. | |
| max_amount | No | Maximum USD amount willing to pay for this request (e.g. "0.01 USD" or "0.002"). Prevents unexpected high charges. |