Access L402-Protected API
access_l402Fetch URLs behind L402 paywalls by automatically paying Lightning invoices and retrying with proof of payment, returning the response data.
Instructions
Fetch a URL that may be behind an L402 (Lightning-gated) paywall. Automatically pays the invoice and retries with proof of payment. Returns the response data.
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": {
"url": "<url>"
},
"name": "access_l402"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to fetch (may return 402 with Lightning invoice) | |
| body | No | Request body (for POST/PUT) | |
| method | No | HTTP method (default GET) | |
| headers | No | Additional request headers | |
| maxSats | No | Maximum sats to auto-pay (safety limit) | |
| nostrPubkey | No | Your Nostr pubkey hex for trust discounts (X-Nostr-Pubkey header) |