{"openapi":"3.1.0","info":{"title":"Read Now","version":"1.0.0","description":"Public URL to cleaned markdown for AI agents. Free preview; paid Lightning L402 full extract with agent-file discovery. Operator: Hexbox Tools. lud16 hexbox@hexbox-ln.hexboxtools.workers.dev","contact":{"name":"Hexbox Tools","url":"https://hexbox-read.hexboxtools.workers.dev"}},"servers":[{"url":"https://hexbox-read.hexboxtools.workers.dev"}],"paths":{"/api/preview":{"get":{"summary":"Free preview of a public URL (title + first characters)","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","format":"uri"}}],"responses":{"200":{"description":"Preview JSON"},"400":{"description":"Bad url"},"502":{"description":"Fetch failed"}}}},"/api/v1/read":{"get":{"summary":"Full URL → markdown briefing (L402, 21 sats)","description":"First request returns HTTP 402 with WWW-Authenticate L402 macaroon + bolt11 invoice. Pay, then retry with Authorization: L402 <macaroon>:<preimage> and ?url=","parameters":[{"name":"url","in":"query","required":false,"schema":{"type":"string","format":"uri"}}],"responses":{"200":{"description":"Full extract JSON including markdown, meta, agent_files, pay_hints"},"400":{"description":"Missing/blocked url after payment"},"401":{"description":"Bad L402 Authorization"},"402":{"description":"Payment required. WWW-Authenticate: L402 macaroon=..., invoice=lnbc..."}},"security":[{"l402":[]}]}}},"components":{"securitySchemes":{"l402":{"type":"apiKey","in":"header","name":"Authorization","description":"L402 <macaroon>:<preimage> after paying the 402 invoice"}}},"x-payment":{"protocol":"L402","price_sats":21,"lud16":"hexbox@hexbox-ln.hexboxtools.workers.dev"}}