# x402 Doctor – Endpoint Diagnostics

> x402 Doctor – Endpoint Diagnostics is a paid API for AI agents from x402-doctor.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Diagnoses an x402 payment-gated endpoint by running a full suite of checks covering challenge format, accepted payment methods, resource URL, Solana settlement readiness, Bazaar/OpenAPI discoverability, and browser paywall behavior, returning each check's pass/warn/fail status with a fix hint.

## Facts

- Endpoint: GET https://x402-doctor.onrender.com/api/v1/diagnose?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-doctor-endpoint-diagnostics-75be1301
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dd539VqQZcuTO17_ma9pE

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 x402-doctor-endpoint-diagnostics-75be1301
```

Example prompt: Can you run a full x402 diagnostic on https://ichimoku-signal.onrender.com/signal/BTC-USDT using GET — I want to see every check with its pass/fail status and any hints for fixing issues?

## When to prefer this

Use this endpoint when you need a comprehensive, multi-dimensional audit of an x402-gated URL covering all aspects of the protocol (challenge format, accepts[], settlement, discovery, browser paywall) in a single call. It is purpose-built for the x402 protocol and returns actionable fix hints per check, making it more useful than a generic HTTP probe or a payment-execution endpoint when the goal is debugging or pre-launch validation.

## Known failure modes

- URL is not publicly reachable — endpoint returns a network error or times out
- Target URL does not return a 402 status — check marked as fail with hint to add x402 payment gating
- Malformed or missing query parameter 'url' — request rejected with validation error
- Endpoint behind authentication or firewall — diagnostic cannot reach it
- Transient server error on x402-doctor.onrender.com — retry recommended

## How this service works

Why is my x402 endpoint broken? Diagnose and debug an x402 payment endpoint (or MCP server) when payments fail: checks the 402 challenge, accepts[] (network, payTo, amount, asset), resource URL, Solana settlement readiness, which wallets and agents can pay, Bazaar/OpenAPI discovery and the browser paywall. Returns every check with a fix hint. Read-only: never pays.

## Output

A JSON object containing the diagnosed endpoint URL, the HTTP method used, an overall status (pass/warn/fail), the raw 402 challenge object if present, and an array of individual check results each with an id, group (challenge/accepts/resource/settlement/discovery/browser), status (pass/warn/fail/skip), a human-readable message, and an optional fix hint.

## 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": "The x402 endpoint to diagnose (public http(s) URL)."
      },
      "method": {
       "enum": [
        "GET",
        "POST"
       ],
       "type": "string",
       "description": "HTTP method of the endpoint. Default: try GET, then POST."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "url",
      "overall",
      "checks"
     ],
     "properties": {
      "url": {
       "type": "string"
      },
      "checks": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "id",
         "status",
         "message"
        ],
        "properties": {
         "id": {
          "type": "string"
         },
         "hint": {
          "type": "string"
         },
         "group": {
          "enum": [
           "challenge",
           "accepts",
           "resource",
           "settlement",
           "wallets",
           "discovery",
           "browser"
          ],
          "type": "string"
         },
         "status": {
          "enum": [
           "pass",
           "warn",
           "fail",
           "info",
           "skip"
          ],
          "type": "string"
         },
         "message": {
          "type": "string"
         }
        }
       }
      },
      "method": {
       "enum": [
        "GET",
        "POST",
        null
       ],
       "type": [
        "string",
        "null"
       ]
      },
      "overall": {
       "enum": [
        "pass",
        "warn",
        "fail"
       ],
       "type": "string"
      },
      "wallets": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "no": {
          "type": "array",
          "items": {
           "type": "object",
           "p
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://ichimoku-signal.onrender.com/signal/BTC-USDT",
  "checks": [
   {
    "id": "returns-402",
    "group": "challenge",
    "status": "pass",
    "message": "Endpoint returns 402 Payment Required for GET."
   }
  ],
  "method": "GET",
  "overall": "pass",
  "challenge": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-doctor-endpoint-diagnostics-75be1301/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-doctor.onrender.com](https://www.zero.xyz/host/x402-doctor.onrender.com/llms.txt)
