L402
L402 is a protocol for charging for an API endpoint over HTTP 402 with a Lightning Network payment.
Definition
Crypto
L402 is a protocol for charging for an API endpoint over HTTP 402 with a Lightning Network payment. The server's 402 response carries a token and a Lightning invoice. The client pays the invoice and then presents the token together with the payment preimage as proof. The documentation says it is built with a focus on agentic commerce. Status: live. The documentation says its Aperture proxy is used today by Lightning Loop.
Why it matters
It applies the same pay-per-request idea as x402 to the Lightning Network, so it is another way an agent can pay for an API.
Sources
- Lightning Engineering, L402, opened 27 November 2026.
Questions and answers
What is L402?
L402 is a protocol for charging for an API endpoint over HTTP 402 with a Lightning Network payment. The server's 402 response carries a token and a Lightning invoice. The client pays the invoice and then presents the token together with the payment preimage as proof. The documentation says it is built with a focus on agentic commerce. Status: live. The documentation says its Aperture proxy is used today by Lightning Loop.
Why does L402 matter for agent payments?
It applies the same pay-per-request idea as x402 to the Lightning Network, so it is another way an agent can pay for an API.
More terms
See the full glossary, the topics and the safety guide. This page and the glossary are free.