# x402 Endpoint Doctor

> x402 Endpoint Doctor is a paid API for AI agents from apexfaucet.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Diagnoses why an x402 payment endpoint fails Coinbase listing or standard client payment, returning specific issues and fixes

## Facts

- Endpoint: GET https://apexfaucet.xyz/api/x402/x402-endpoint-doctor?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-endpoint-doctor-30d445ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vTgfDdbLni9hPK6VFdmTS

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-endpoint-doctor-30d445ea
```

Example prompt: Can you check why my x402 endpoint at https://myapi.example.com/pay isn't being listed by Coinbase — run the endpoint doctor on it and tell me every issue and how to fix it?

## When to prefer this

Use this endpoint when you have built an x402-compliant payment API and need to diagnose why it is not being listed by Coinbase's facilitator or Bazaar, or why standard x402 clients cannot pay it. It is the right choice when you want a structured list of specific violations and actionable fixes rather than a generic HTTP debugger. Prefer this over manually reading x402 specs when you need to verify Bazaar schema requirements, the $0.001 minimum, routeTemplate, exposed headers, and Coinbase validator acceptance all in one call.

## Known failure modes

- Target URL is not publicly reachable or returns a non-402 status unexpectedly
- URL parameter missing — returns error requiring the url query param
- Target endpoint uses an unsupported protocol or is behind auth
- Coinbase validator service temporarily unavailable causing partial results
- Malformed 402 response from target endpoint that cannot be parsed

## How this service works

x402 validator: will Coinbase Bazaar list your x402 endpoint, and can a client pay it? Why will Coinbase not list your x402 endpoint, and can a standard client pay it? Pass ?url= (and &method=POST for a POST route). We read its 402 as a client does, check what Coinbase's facilitator and Bazaar enforce (accepts[0] network, the $0.001 minimum, descriptions over 500 characters, a bazaar schema that must describe info, query numbers typed as strings, routeTemplate, exposed headers), and ask…

## Output

A structured report listing every compliance problem found with the x402 endpoint — including issues with the accepts[0] network, the $0.001 minimum price, descriptions over 500 characters, Bazaar schema violations (typed query numbers as strings, routeTemplate, info description), exposed headers, and Coinbase validator results — each accompanied by a specific fix recommendation.

## 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",
    "queryParams"
   ],
   "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 examine (public http/https URL)."
      },
      "method": {
       "enum": [
        "GET",
        "POST"
       ],
       "type": "string",
       "description": "Optional. A GET that answers 405 is re-checked as POST automatically."
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

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