{"openapi":"3.1.0","info":{"title":"LawLogic Agent APIs","version":"0.2.0","description":"Agent-native APIs with free previews + x402 USDC (PayAI) or prepaid credits. Policy A+C: public-data funding feeds only."},"servers":[{"url":"https://lawlogic-web.lawlogic.workers.dev"}],"paths":{"/health":{"get":{"summary":"Health check","responses":{"200":{"description":"OK"}}}},"/v1/funding-spreads":{"get":{"summary":"Funding spread feed (S1)","description":"Free public preview (no payment). For x402 paid tier use GET /v1/funding-spreads?mode=paid ($0.01 USDC) or X-API-Key credits.","parameters":[{"name":"mode","in":"query","schema":{"type":"string","enum":["paid"]},"required":false,"description":"Set to paid to receive HTTP 402 x402 challenge ($0.01 USDC)"}],"responses":{"200":{"description":"Funding spread JSON (free preview or after payment)"},"402":{"description":"Payment required when mode=paid without payment"}}}},"/v1/research":{"post":{"summary":"Research call (S2)","description":"Free preview 3/IP/day. Add ?mode=paid for x402 ($0.03 USDC) or send X-API-Key credits.","parameters":[{"name":"mode","in":"query","schema":{"type":"string","enum":["paid"]},"required":false,"description":"Set to paid to require x402 ($0.03 USDC)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":8},"max_sources":{"type":"integer"}},"required":["query"]}}}},"responses":{"200":{"description":"Research brief JSON"},"402":{"description":"Payment required when mode=paid"},"429":{"description":"Free tier rate limit"}}}},"/agents.json":{"get":{"summary":"Machine-readable SKU catalog","responses":{"200":{"description":"SKU list"}}}},"/v1/credits/purchase-info":{"get":{"summary":"USDC credit purchase info","responses":{"200":{"description":"pay_to + pricing"}}}}}}