Sell your API to agents (any coin)
create_paywallFor API/website OWNERS: put a paywall in front of any https API in seconds, no code. Set a price per pack (e.g. 1 USDC for 1000 calls) and your wallet. You get a gateway_url: agents calling it get HTTP 402 with buying instructions, pay with ANY coin on any chain (money goes straight to you), then their calls are forwarded to your API. Returns an admin_key for stats and an off switch. Add listed=true to appear in the public directory, test=true to try it free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"upstream_url": "<upstream_url>",
"price_per_pack": "<price_per_pack>",
"calls_per_pack": "<calls_per_pack>",
"recipient": "<recipient>"
},
"name": "create_paywall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Short name shown to buyers, e.g. 'Weather API'. | |
| test | No | Test paywall: only free test-mode payments count. | |
| chain | No | Chain you receive on (default base). | |
| token | No | Token you receive (default USDC). | |
| listed | No | List in the public directory (find_paywalls). | |
| recipient | Yes | Your wallet address on the chain you receive on. | |
| description | No | What your API does (shown in the directory). | |
| upstream_url | Yes | Your API's base URL (https), e.g. https://api.example.com/v1. Paths and queries after the gateway URL are appended. | |
| calls_per_pack | Yes | Calls included in one pack, e.g. 1000. | |
| price_per_pack | Yes | Price of one pack, in the token you receive, e.g. '1'. Must be worth at least $1. | |
| upstream_header | No | Optional secret header added to forwarded calls so only Swap Ripper can reach your API, e.g. 'Authorization: Bearer abc123'. |