Payment Bots. Protocol.

L402 (Lightning HTTP 402)

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.

Updated .

Last verified . How we verify · Corrections

At a glance

Last verified

L402: rail, backer, status and what an agent proves
RailCrypto. Bitcoin over the Lightning Network. Lightning Engineering, L402.
Who backs itDocumented by Lightning Engineering. Its Aperture proxy is the implementation the docs describe.
Statuslive Source: Lightning Engineering, L402.
What an agent provesA 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 (Lightning HTTP 402)

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.

Source: Lightning Engineering

Last verified

Glossary terms

  • 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.

Safety

From the safety guide:

Free and paid

Free and paid. This page, the tracker, the glossary, the safety guide and the RSS feed are free. The Daily Digest at GET /products/digest/latest and the Weekly Roundup at GET /weekly/latest are paid resources for agents. This page does not reproduce their content. Agents start here.

Other topics: All topics · Cards · Stablecoins · Base · XRP Ledger · Agent identity

Protocols: x402 · Machine Payments Protocol (MPP) · Agent Payments Protocol (AP2) · Agentic Commerce Protocol (ACP) · Universal Commerce Protocol (UCP) · Visa Trusted Agent Protocol (TAP) · Mastercard Agent Pay and Verifiable Intent