Buy access to a paywalled API
buy_accessBuy a pack of calls for a paywalled API (from a 402 response, find_paywalls or a gateway_url). Returns an access_key and a payment link payable with any coin. Add pay_with_token, pay_with_chain and refund_address to get deposit instructions right away. Pass an existing access_key to top it up. Credits activate automatically once paid; then send header X-Access-Key on calls to the gateway_url.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "buy_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | No | Optional. Default 'best_price': Swap Ripper quotes two networks at once and uses whichever is cheaper for you (and the other if one fails); the reply's route_choice shows both. 'fast' forces the ~seconds Relay route. | |
| access_key | No | Optional: an existing key to top up. | |
| paywall_id | No | e.g. pw_abc123... (or use gateway_url). | |
| request_id | No | Recommended: your own unique ID for this payment (e.g. a UUID). Retrying with the same request_id returns the SAME payment instructions, so you never pay twice. | |
| gateway_url | No | The paywalled URL you called. | |
| pay_with_chain | No | ||
| pay_with_token | No | ||
| refund_address | No |