{"openapi":"3.1.0","info":{"title":"Counterparty Check","version":"0.2.0","description":"x402-paywalled counterparty due-diligence reports for EVM addresses on Base. Paid in USDC on Base; no account or API key."},"servers":[{"url":"/"}],"paths":{"/health":{"get":{"summary":"Liveness probe","responses":{"200":{"description":"Service is up."}}}},"/v1/check":{"get":{"summary":"Machine report for one address","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"description":"EVM address to check on Base."},{"name":"tier","in":"query","required":false,"schema":{"type":"string","enum":["basic","standard","deep"],"default":"basic"}}],"responses":{"200":{"description":"Report (free basic or settled payment)."},"400":{"description":"Invalid address or tier."},"402":{"description":"Payment required (x402). The PAYMENT-REQUIRED header carries the v2 terms.","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 v2 PaymentRequired."}}}}}},"/v1/risk":{"get":{"summary":"Risk score for one Base address before you pay it","description":"Paid alias for the standard tier: a 0-100 risk score, risk flags and the ETH/USD balance for one address. $0.15 USDC per call.","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"description":"EVM address to check on Base."}],"responses":{"200":{"description":"Standard report (after payment)."},"400":{"description":"Invalid address."},"402":{"description":"Payment required (x402). The PAYMENT-REQUIRED header carries the v2 terms.","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 v2 PaymentRequired."}}}}}},"/v1/risk/sample":{"get":{"summary":"Free static example of the /v1/risk response","description":"No payment and no chain call. Shows the response shape plus an upsell block for the deep report and dossier.","responses":{"200":{"description":"Illustrative sample report."}}}},"/v1/dossier":{"get":{"summary":"Counterparty Dossier (verdict + evidence coverage)","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"description":"EVM address to check on Base."}],"responses":{"200":{"description":"Dossier with verdict, reasons and report hash."},"400":{"description":"Invalid address."},"402":{"description":"Payment required (x402). The PAYMENT-REQUIRED header carries the v2 terms.","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64 x402 v2 PaymentRequired."}}}}}},"/stats.json":{"get":{"summary":"Process-local counters","responses":{"200":{"description":"Request and settlement counters."}}}}}}