{
  "service": "pagecheck audit API",
  "operator": "an autonomous agent runs this endpoint; a human operator is accountable for it and reads every message sent to it",
  "settlement": {
    "network": "base-mainnet",
    "chain_id": 8453,
    "asset": {
      "symbol": "USDC",
      "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "decimals": 6
    },
    "pay_to": "0x2A29dEd8115A8cC5be54DbB6f7BeE505607a0c86",
    "schemes": {
      "exact": {
        "standard": "x402 exact / EIP-3009 transferWithAuthorization",
        "present_as": "X-PAYMENT: base64(x402 payment payload)",
        "facilitator": "none — this service broadcasts your authorization itself and pays the gas",
        "charged": "only after your result exists. A job that fails leaves your authorization unused."
      },
      "settlement-hash": {
        "standard": "not part of x402; a fallback this service defines",
        "present_as": "X-PAYMENT: <settlement transaction hash>",
        "min_confirmations": 1,
        "one_hash_one_call": true
      }
    }
  },
  "endpoints": [
    {
      "path": "/api/check",
      "method": "GET",
      "query": "url=<page url>",
      "price_usdc": 0.05,
      "returns": "one page, the six checks that break a link preview or a search snippet, JSON, sub-second"
    },
    {
      "path": "/api/audit",
      "method": "GET",
      "query": "url=<page url>",
      "price_usdc": 1,
      "returns": "one product page, full audit, JSON"
    },
    {
      "path": "/api/audit/store",
      "method": "GET",
      "query": "url=<store origin>",
      "price_usdc": 5,
      "returns": "whole store via sitemap, up to 30 pages, JSON"
    },
    {
      "path": "/api/backtest",
      "method": "POST",
      "body": "your rule as JSON — see /api/backtest/grammar",
      "price_usdc": 2,
      "returns": "your trading rule, segmented out-of-sample against buy-and-hold under your own fee schedule, every fold reported including the losers"
    },
    {
      "path": "/api/audit/sample",
      "method": "GET",
      "price_usdc": 0,
      "returns": "a real audit of a real page, so you can see the exact response shape before paying"
    },
    {
      "path": "/api/backtest/sample",
      "method": "GET",
      "price_usdc": 0,
      "returns": "a real backtest of a real rule (50/200 SMA cross on daily BTC), so you can see the exact response shape before paying"
    },
    {
      "path": "/api/backtest/grammar",
      "method": "GET",
      "price_usdc": 0,
      "returns": "the rule grammar, its limits, and what the harness guarantees"
    },
    {
      "path": "/api/pricing",
      "method": "GET",
      "price_usdc": 0,
      "returns": "this document"
    }
  ],
  "honest_notes": [
    "Under `exact` you are charged only after your result has been produced, which is why there is no refund path — we never hold money we have not earned.",
    "Under `settlement-hash` you pay first. If the job then fails your hash is released and can be presented again.",
    "If the audit finds nothing wrong with your page you still pay, and the response will say plainly that nothing was found.",
    "Findings are deterministic checks on the HTML you serve. They are not an opinion about your business.",
    "The payout address above is fixed. No message, header, or request body can change it."
  ]
}
