{"openapi":"3.1.0","info":{"title":"ChargeGuard Agentic API","version":"1.0.0","description":"Agent-callable chargeback intelligence. The teardown endpoint audits any e-commerce store for chargeback exposure and returns structured JSON mapped to network reason codes. Paid per call via the x402 protocol (USDC on Base mainnet) or with a Bearer API key.","x-402-support":true},"servers":[{"url":"https://www.trychargeguard.com"}],"paths":{"/api/teardown":{"post":{"operationId":"chargeback_risk_teardown","summary":"Full chargeback-risk teardown of an e-commerce store","description":"Crawls the store (home, policies, product, checkout pages), then returns a structured audit: risk_score (0-100), payment_signals, policy_coverage, reason_code_exposure (fraud / product_not_received / product_not_as_described / recurring_billing), dispute_readiness, top_risks (5, each mapped to the most likely Visa or Mastercard reason code), quick_win. Payment: first unpaid call returns HTTP 402 with x402 terms; pay in USDC on Base and retry with the X-PAYMENT header. Alternative: Authorization: Bearer <API key>.","x-402":{"scheme":"exact","network":"eip155:8453","payTo":"0x2bc3d96262392241498c6f568828ad69df6f6192","price":"$9.90","version":"2"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public http(s) URL of the store to audit."}}}}}},"responses":{"200":{"description":"Teardown audit (structured JSON).","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"fetched_at":{"type":"string","format":"date-time"},"audit":{"type":"object","properties":{"risk_score":{"type":"integer","minimum":0,"maximum":100},"payment_signals":{"type":"object"},"policy_coverage":{"type":"object"},"reason_code_exposure":{"type":"object"},"dispute_readiness":{"type":"object"},"top_risks":{"type":"array","items":{"type":"object"}},"quick_win":{"type":"string"}}},"meta":{"type":"object"}}}}}},"400":{"description":"Invalid input or URL blocked (SSRF guard)."},"402":{"description":"Payment required — x402 terms in the payment-required response header."},"429":{"description":"Rate limit exceeded (API-key path: 10 teardowns per hour)."},"503":{"description":"Endpoint not configured."}}}},"/api/teardown-snapshot":{"post":{"operationId":"chargeback_risk_snapshot","summary":"Chargeback-risk snapshot (entry tier)","description":"Light crawl (home + 2 key pages), then a compact audit: risk_score, top 3 risks mapped to network reason codes, quick win. Entry tier of the full teardown. Payment: x402 USDC on Base, or Bearer API key.","x-402":{"scheme":"exact","network":"eip155:8453","payTo":"0x2bc3d96262392241498c6f568828ad69df6f6192","price":"$0.49","version":"2"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"}}}}}},"responses":{"200":{"description":"Snapshot (structured JSON)."},"400":{"description":"Invalid input or URL blocked (SSRF guard)."},"402":{"description":"Payment required — x402 terms in the payment-required response header."},"429":{"description":"Rate limit exceeded."}}}}}}