Agentic Commerce
Creating L402-protected API endpoints requires the Agentic Commerce — Individual ($99/month) or Agentic Commerce — Business plan ($299/month). Using the MCP server to access L402 APIs is completely free — no subscription needed. View pricing
L402 enables pay-per-request API monetization using the Lightning Network. Users pay a Lightning invoice to access your API - no accounts, no subscriptions, no credit cards required.
Strike (recommended): Create a Strike account and generate an API key — no KYB required to start. Strike supports preimage extraction for L402.
OpenNode: Create an OpenNode dev account for testnet testing — no KYB required. Swap to a production key after KYB verification (2-4 business days).
Zero Infrastructure Required
Unlike other L402 implementations, Lightning Enable is a fully hosted SaaS:
- No Lightning node — your payment provider (Strike or OpenNode) handles all payment routing and liquidity
- No liquidity management — no channel balancing, no inbound capacity planning
- No custom servers — no Docker, no Kubernetes, no self-hosted middleware
- No protocol expertise — configure via dashboard in minutes
What you need:
- Agentic Commerce — Individual ($99/month) or Agentic Commerce — Business ($299/month) subscription
- A payment provider account — Strike (recommended) or OpenNode
- 5 minutes to configure your first proxy in the dashboard
What is L402?
L402 (formerly LSAT) combines:
- HTTP 402 Payment Required - The web's native payment status code
- Lightning Network - Instant Bitcoin micropayments
- Macaroons - Cryptographic bearer tokens with permissions
The Problem
Traditional API monetization requires:
- User accounts and passwords
- Credit cards on file
- Monthly subscriptions (even for light usage)
- Complex billing infrastructure
- Fraud prevention systems
The Solution
With L402:
- No accounts - Pay and access immediately
- No credit cards - Bitcoin only
- Pay-per-use - Only pay for what you consume
- Instant access - Payment confirms in ~1 second
- Global - Anyone with Bitcoin can access
How It Works
1. Client requests API 2. Server returns 402
─────────────────────────────> <─────────────────────
GET /api/premium/data HTTP 402 Payment Required
Invoice: lnbc100n1p...
Macaroon: AgEL...
3. Client pays invoice 4. Client retries with proof
─────────────────────> ─────────────────────────>
Via Lightning wallet Authorization: L402 mac:preimage
(~1 second)
5. Server verifies, grants access
<─────────────────────────
HTTP 200 OK
{ "data": "..." }
Key Benefits
| Traditional API | L402 API |
|---|---|
| Account required | No account needed |
| Credit card on file | No payment method stored |
| Monthly subscription | Pay per request |
| Minimum $5–$20 charge | As low as 1 sat (~$0.0004) |
| Chargeback risk | Impossible to reverse |
| KYC for users | Permissionless access |
Agent-to-Agent Commerce (Producer API)
With the L402 Producer API, your AI agents can charge for their services — not just pay for others'. Your agent creates L402 payment challenges, other agents pay them, and your agent verifies payment before granting access. This is the missing piece for true agentic commerce.
Two new MCP tools:
create_l402_challenge— Create a 402 challenge with Lightning invoice + macaroonverify_l402_payment— Verify an L402 token to confirm payment before granting access