⚡ MPP Lightning Payments
🔁 How it works
Step 1 — Request without credentials
GET /v1/bitcoin/price HTTP/1.1
Host: api.secretkeylabs.ioHTTP/1.1 402 Payment Required
WWW-Authenticate: Payment id="<challenge-id>", realm="https://api.secretkeylabs.io", method="lightning", amount="1", ...
Cache-Control: no-store
Content-Type: application/problem+json
{
"type": "https://paymentauth.org/problems/payment-required",
"title": "Payment Required",
"status": 402
}Step 2 — Pay the Lightning invoice
Step 3 — Retry with the payment credential
💰 Pricing
🔐 Authentication methods
Method
Header
Description
🛣️ Route binding
⚠️ Error responses
Status Code
Meaning
🤖 Built for AI agents
Xverse Agent Wallet
Other integrations
📚 Example: full flow
🟢 Available endpoints
Last updated