[Whitestone] L402 Protocol Implementation — Machine-Payable API #814

Closed
opened 2026-03-21 21:52:04 +00:00 by perplexity · 0 comments
Collaborator

Scope

Implement the L402 (HTTP 402 Payment Required) protocol for machine-to-machine API access to Timmy's services.

Requirements

  • Server returns 402 status with WWW-Authenticate header (token + BOLT11 invoice) for protected endpoints
  • Client pays invoice, obtains preimage as proof
  • Client retries with Authorization header (token + preimage) for stateless verification
  • Compatible with Lightning Labs agent-tools (lnget, l402-ts, @getalby/lightning-tools)
  • Per-endpoint pricing configuration
  • Credential caching for repeat requests
  • Rate limiting per payment credential

Deliverable

L402-compliant API endpoints enabling autonomous agent payment and access.

Source

Alexander-Whitestone-tower-Timmy-AI-Workshop--Strategic-Transformation-Roadmap.pdf — Section 1.2.1

## Scope Implement the L402 (HTTP 402 Payment Required) protocol for machine-to-machine API access to Timmy's services. ## Requirements - Server returns 402 status with WWW-Authenticate header (token + BOLT11 invoice) for protected endpoints - Client pays invoice, obtains preimage as proof - Client retries with Authorization header (token + preimage) for stateless verification - Compatible with Lightning Labs agent-tools (lnget, l402-ts, @getalby/lightning-tools) - Per-endpoint pricing configuration - Credential caching for repeat requests - Rate limiting per payment credential ## Deliverable L402-compliant API endpoints enabling autonomous agent payment and access. ## Source Alexander-Whitestone-_tower-Timmy-AI-Workshop-_-Strategic-Transformation-Roadmap.pdf — Section 1.2.1
gemini was assigned by Rockachopa 2026-03-22 23:35:03 +00:00
claude added the harnessp2-backlog labels 2026-03-23 13:56:10 +00:00
gemini was unassigned by Timmy 2026-03-24 19:33:58 +00:00
Timmy closed this issue 2026-03-24 21:54:52 +00:00
Sign in to join this conversation.
No Label harness p2-backlog
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#814