A health-checked, machine-readable registry of Lightning-gated APIs. Structured for agents, browsable by humans. No API keys. No accounts. Just Lightning.
Check GET /api/schema for the listing format. Include your endpoints, pricing, and health URL.
Submit your listing JSON. Server validates it and returns a 402 with a 1,000-sat Lightning invoice.
Pay 1,000 sats via Lightning. Get the preimage back from your wallet.
Send the same JSON with the L402 token. Your service goes live instantly. The preimage is your management key.
# Step 1: Submit listing (get 402 + invoice)
curl -X POST https://l402.directory/api/submit \
-H "Content-Type: application/json" \
-d '{
"name": "My API",
"description": "Lightning-gated data service",
"endpoints": [{
"url": "https://api.example.com/v1/data",
"method": "GET",
"pricing": {"amount": 100, "currency": "sats", "model": "per-request"}
}],
"health_url": "https://api.example.com/health",
"categories": ["data"]
}'
# Step 2: Pay the invoice, get preimage
# Step 3: Re-POST with L402 token
curl -X POST https://l402.directory/api/submit \
-H "Content-Type: application/json" \
-H "Authorization: L402 <macaroon>:<preimage>" \
-d '{ ...same JSON... }'
?category=video, ?status=live, ?format=minimalAuthorization: Bearer {preimage}.