{
"service": "TunnelSats L402 & x402 Agent Payment Gateway",
"protocol": "L402",
"endpoint": "https://tunnelsats.com/api/v1",
"method": "POST",
"openapiUrl": "https://tunnelsats.com/openapi.json",
"instructions": {
"step1": "POST /api/v1 with JSON body { serverId, duration, wgPublicKey } to receive an HTTP 402 L402 challenge (live BOLT11 invoice + binary V2 macaroon).",
"step2": "Pay the BOLT11 Lightning invoice and obtain the 32-byte payment preimage (64-char hex).",
"step3": "Replay POST /api/v1 with header Authorization: L402 <macaroon>:<preimage> (and matching wgPublicKey) to claim your WireGuard tunnel."
}
}