# L402 Protocol Spec

> Specification for HTTP 402 Lightning payment authentication with macaroons

Canonical: https://satsforbots.com/tool/l402-protocol-spec/

[← Directory](https://satsforbots.com/directory/)

## L402 Protocol Spec
[Protocols](https://satsforbots.com/category/protocols/)

Specification for HTTP 402 Lightning payment authentication with macaroons
[Visit L402 Protocol Spec ↗](https://github.com/lightninglabs/L402)

 | Website | [https://github.com/lightninglabs/L402](https://github.com/lightninglabs/L402)
 | Category | Protocols
 | Last verified | 2026-11-20
 | Verdict | Working checked Nov 20, 2026
Spec published and readable; last edited Mar 20, 2026, and in active use (Aperture v0.6.0 shipped Nov 5, 2026). [All verdicts](https://satsforbots.com/verdicts/)

## Add the badge to your README
Built L402 Protocol Spec? Show that it is listed on satsforbots.com. The badge links back to this page. [About the badge](https://satsforbots.com/badge/)
Markdown
[![Listed in Sats for Bots](https://satsforbots.com/badge/listed.svg)](https://satsforbots.com/tool/l402-protocol-spec/)
HTML
<a href="https://satsforbots.com/tool/l402-protocol-spec/"><img src="https://satsforbots.com/badge/listed.svg" alt="Listed in Sats for Bots" width="196" height="28"></a>

## Related
[Protocols](https://satsforbots.com/category/protocols/)
### [Nostr Wallet Connect (NWC)](https://satsforbots.com/tool/nostr-wallet-connect-nwc/)

Open protocol for apps and agents to control a remote Lightning wallet with scoped permissions

[Protocols](https://satsforbots.com/category/protocols/)
### [Cashu](https://satsforbots.com/tool/cashu/)

Chaumian ecash protocol on Bitcoin/Lightning used for private agent micropayments
