# x402fix Site Tier Auditor

> x402fix Site Tier Auditor is a paid API for AI agents from x402fix.agentgate.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-28).

Audits all paid x402 routes of an origin URL, returning a letter grade, numbered fix list, and detailed compliance checks for each discovered route

## Facts

- Endpoint: GET https://x402fix.agentgate.workers.dev/v1/site?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402fix-site-tier-auditor-b69d7da0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__elYGllsMW6nDt4GxBNCi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402fix-site-tier-auditor-b69d7da0
```

Example prompt: Can you run a full x402 site audit on https://api.myaitools.co and tell me if all my paid routes are properly configured — I want the grade, score, and a fix list for anything that's broken?

## When to prefer this

Use this site-tier endpoint when you need to audit an entire API origin (up to 8 paid routes) rather than a single URL. Prefer this over a single-route check when you want to discover all paid routes automatically, verify multichain consistency across your whole API, or get a holistic compliance grade before launch or after infrastructure changes. Best suited for API sellers who want a full diagnostic of their x402 seller setup in one call.

## Known failure modes

- URL not reachable or returns non-402 responses — routes may not be discovered
- Origin has no x402-compliant routes — returns grade F with empty routes array
- Discovery doc missing or malformed — discovery fields return null or errors
- Bazaar declaration JSON Schema validation fails — flagged in fix list
- Network timeout on probe requests — partial results or error response
- Invalid URL format in query parameter — request rejected with validation error

## How this service works

x402 endpoint doctor for sellers: probes a paid x402 URL unpaid (GET, HEAD, empty POST, POST {}, CORS preflight; never pays) and returns a grade A-F, a numbered fix list and every check: v2 PAYMENT-REQUIRED header, v1 body, accepts (canonical USDC, EIP-712 domain, Solana feePayer, atomic amounts, payTo), multichain consistency and the Bazaar declaration validated against its own JSON Schema. The check tier adds the CDP facilitator validate verdict and index status, discovery-doc consistency, payee checks and a generated, self-validated extensions.bazaar block with multichain accepts. The site tier audits up to 8 paid routes of an origin.

## Output

Returns a JSON object with: overall grade (A-F), overall score (0-100), per-route breakdown with individual grades and pass/fail status, a numbered fix list for any failing checks, discovery document details (OpenAPI URL, .well-known/x402, routes found vs checked), and a plain-English summary line. Each route is checked for v2 PAYMENT-REQUIRED headers, v1 body, accepted payment methods (USDC, EIP-712 domain, Solana feePayer, atomic amounts, payTo), multichain consistency, CDP facilitator validate verdict, index status, and Bazaar declaration schema validity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Full https URL of the paid x402 route (site tier: the origin or API base URL)"
      },
      "method": {
       "enum": [
        "GET",
        "POST"
       ],
       "type": "string",
       "description": "Method your paid route uses (default: from its Bazaar declaration, else GET)"
      },
      "framework": {
       "enum": [
        "hono",
        "express",
        "next"
       ],
       "type": "string",
       "description": "Server framework for the generated snippet (check tier, default hono)"
      }
     },
     "description": "Search intents: x402 site audit, x402 discovery check, well-known x402 validator, openapi x402 drift, x402 route grades, paid api audit"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "tier": {
       "type": "string"
      },
      "grade": {
       "type": "string"
      },
      "score": {
       "type": "number"
      },
      "routes": {
       "type": "array"
      },
      "status": {
       "type": "string"
      },
      "summary": {
       "type": "string"
      },
      "discovery": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://api.youraitools.co/counterpartycheck",
  "tier": "site",
  "grade": "A",
  "score": 100,
  "routes": [
   {
    "url": "https://api.youraitools.co/counterpartycheck/v1/lite",
    "grade": "A",
    "score": 100,
    "status": "pass"
   }
  ],
  "status": "pass",
  "summary": "A (100/100) across 3 of 3 paid route(s); 3 pass, 0 need fixes.",
  "discovery": {
   "openapi": "https://api.youraitools.co/counterpartycheck/openapi.json",
   "well_known": "https://api.youraitools.co/counterpartycheck/.well-known/x402",
   "routes_found": 3,
   "routes_checked": 3
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402fix-site-tier-auditor-b69d7da0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402fix.agentgate.workers.dev](https://www.zero.xyz/host/x402fix.agentgate.workers.dev/llms.txt)
