# agent-utils-x402 x402 Compliance Checker

> agent-utils-x402 x402 Compliance Checker is a paid API for AI agents from agent-utils-x402-production.revenue-agent-jw.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-28).

Checks whether a given HTTPS endpoint correctly implements the x402 payment protocol and returns a compliance score with detailed issues

## Facts

- Endpoint: GET https://agent-utils-x402-production.revenue-agent-jw.workers.dev/v1/x402/check?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-utils-x402-x402-compliance-checker-a1e5d032
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v99d8ySVK6tHWZ76_37Z5

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 agent-utils-x402-x402-compliance-checker-a1e5d032
```

Example prompt: Can you check whether my x402-protected endpoint at https://myapi.example.com/v1/data is compliant and tell me its score and any issues?

## When to prefer this

Use this endpoint when you need to programmatically validate that an x402-protected API is correctly configured — especially useful before listing an endpoint on a discovery platform, debugging payment failures, or confirming spec compliance after changes. Prefer this over manual inspection when you need a structured score and machine-readable issue codes.

## Known failure modes

- Target URL is not reachable or returns a non-402 response — score may reflect missing x402 headers
- Malformed or non-HTTPS URL provided — likely results in a validation error
- Endpoint is behind auth that blocks the checker — compliance cannot be fully assessed
- x402 response missing required fields — reflected as specific issue codes like NO_BAZAAR in the issues array

## How this service works

Small pay-per-call utility APIs for AI agents. Pay per request in USDC on Base via x402 (v2, exact scheme). No accounts, no API keys.

## Output

Returns a JSON object containing a numeric compliance score (0-100), an array of issue objects each with a message, error code, and severity level (warn/error), and the HTTP status code observed from the target endpoint.

## 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": "https URL of the x402-protected endpoint"
      },
      "method": {
       "enum": [
        "GET",
        "POST"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "score": 84,
  "issues": [
   {
    "msg": "no extensions.bazaar block",
    "code": "NO_BAZAAR",
    "level": "warn"
   }
  ],
  "status": 402
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-utils-x402-x402-compliance-checker-a1e5d032/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-utils-x402-production.revenue-agent-jw.workers.dev](https://www.zero.xyz/host/agent-utils-x402-production.revenue-agent-jw.workers.dev/llms.txt)
