L402 is a protocol for charging for API endpoints over HTTP 402 with Lightning Network payments. The documentation says it is built with a focus on agentic commerce, so AI agents can take part. Lightning Engineering, L402. It is a crypto rail: Bitcoin over Lightning.
A token tied to a paid Lightning invoice. The payment preimage is the proof of payment.
What the sources say
Last verified
The flow: the client requests an endpoint, the server answers 402 with a token and a Lightning invoice, the client pays and gets the preimage, and then presents the token and preimage to get access. Lightning Engineering, L402.
The docs say the endpoint can verify the token and the payment without access to a payment database. Lightning Engineering, L402.
The token is a bearer instrument. It can be passed on or restricted, for example to read access only. The recommended format is Macaroons. Lightning Engineering, L402.
The docs say the Aperture reverse proxy is used today by Lightning Loop, which is why this site lists L402 as live. Lightning Engineering, L402.
How it relates to the others
L402 uses the same HTTP 402 idea as x402 and MPP. Where x402 payments settle on chains such as Base or the XRP Ledger, L402 payments settle on Lightning. mpp.dev lists Lightning as an MPP payment method. mpp.dev.
On the tracker
Entries on the agent payments tracker tagged L402 (Lightning HTTP 402). Each has a status label, a date and a source.
L402 is a protocol for charging for API endpoints over HTTP 402 with Lightning Network payments, built with a focus on agentic commerce. Its documentation says the Aperture proxy implements it and is used today by Lightning Loop. Page opened 27 November 2026.
L402: L402 is a protocol for charging for an API endpoint over HTTP 402 with a Lightning Network payment. Verified 27 November 2026.
HTTP 402: HTTP 402 Payment Required is a status code that means the client must pay before the server will return the requested resource. Verified 28 November 2026.
x402: x402 is an open protocol for paying for a web resource over HTTP 402. Verified 23 November 2026.
MPP: The Machine Payments Protocol (MPP) is an open standard for machine-to-machine payments over HTTP, co-authored by Tempo and Stripe. Verified 27 November 2026.
Settlement: In payments, the BIS Committee on Payments and Market Infrastructures glossary defines settlement as the discharge of an obligation in accordance with the terms of the underlying contract. Verified 28 November 2026.