gateway_register
Seller side: put your HTTP endpoint behind an L402 paywall on our gateway. Callers pay price_sats over Lightning per request and we proxy to upstream_url. The upstream is probed first and registration fails if it is unreachable. Registering does not spend funds. REQUIRES OPERATOR KEY.
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": {
"name": "<name>",
"upstream_url": "<upstream_url>",
"price_sats": "<price_sats>"
},
"name": "gateway_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| category | No | ||
| price_sats | Yes | ||
| description | No | ||
| upstream_url | Yes | ||
| upstream_method | No | GET | |
| upstream_headers | No | ||
| upstream_timeout_ms | No |