# l402.space — Universal 402 Gateway Any wallet. Any paid API. Any rail. Pay for any payment-gated API with any agentic wallet — over L402 (Lightning), x402 (USDC), or MPP (Lightning or Tempo). You pay l402.space; it pays the upstream on your behalf over whichever rail it speaks — x402 (USDC), MPP (Tempo stablecoin or Lightning), or L402 — and returns the response. ## Usage Point an L402 client at: GET/POST https://l402.space/ URL-encode the full upstream URL (including its query string) and append it. Your method and body are forwarded to the upstream unchanged. Example: https://l402.space/https%3A%2F%2Fx402.twit.sh%2Ftweets%2Fuser%3Fusername%3Dgetalby proxies https://x402.twit.sh/tweets/user?username=getalby ## Paying Use any agentic wallet that speaks L402, x402, or MPP to make the payment. If you don't have one installed, you can try the Alby Payments Skill: npx skills add getAlby/payments-skill With it, a paid fetch to the proxied URL looks like: npx -y @getalby/cli@latest fetch "https://l402.space/" --max-amount 1000 --currency BTC --unit sats --network lightning ## Discovery — finding paid APIs to call - GET https://l402.space/api/services — live directory of paid API hosts already used through this gateway, with each host's docs URL, price range, volume, and delivery reliability (successful deliveries / payments received) as observed via l402.space. - https://402index.io/llms.txt — the 402 Index, a protocol-agnostic directory of 80,000+ paid API endpoints (L402 + x402 + MPP). Search it with GET https://402index.io/api/v1/services?q= (also filterable by protocol, category, and health). Proxy any endpoint you find through l402.space to pay it over your own rail. ## More - Full API docs (markdown): https://l402.space/docs - OpenAPI 3.1 spec: https://l402.space/openapi.json - Contact (questions, issues, listing a service): hello@getalby.com