{"openapi":"3.0.3","info":{"title":"Fee Now","version":"1.1.0","description":"Live Bitcoin fee calculator (free) and L402-paid best-time-to-send forecast for humans and AI agents. Operator: Hexbox Tools. lud16 hexbox@hexbox-ln.hexboxtools.workers.dev","contact":{"name":"Hexbox Tools","url":"https://hexbox-fees.hexboxtools.workers.dev"}},"servers":[{"url":"https://hexbox-fees.hexboxtools.workers.dev"}],"paths":{"/api/fees":{"get":{"operationId":"getFees","summary":"Current Bitcoin fees (free)","responses":{"200":{"description":"Fee snapshot JSON"}}}},"/api/v1/forecast":{"get":{"operationId":"feeForecast","summary":"Best-time-to-send Bitcoin fee forecast (L402, 21 sats)","description":"First request returns HTTP 402 with WWW-Authenticate L402 macaroon + bolt11 invoice. Pay, then retry with Authorization: L402 <macaroon>:<preimage>.","responses":{"200":{"description":"Forecast JSON"},"401":{"description":"Bad L402 Authorization"},"402":{"description":"Payment required. WWW-Authenticate: L402 macaroon=..., invoice=lnbc..."}},"security":[{"l402":[]}]}},"/api/v1/forecast/sample":{"get":{"operationId":"feeForecastSample","summary":"Free sample forecast schema (not live)","responses":{"200":{"description":"Example JSON"}}}},"/api/agent.json":{"get":{"operationId":"agentDiscovery","summary":"Machine-readable agent discovery","responses":{"200":{"description":"Discovery JSON"}}}}},"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"}}