# x402-preflight Audit

> x402-preflight Audit is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Audits one or more x402 pay-per-call HTTP endpoints to verify they are correctly configured, discoverable, and payable on Base

## Facts

- Endpoint: GET https://api.firstmention.uk/s/x402-preflight/audit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-preflight-audit-1754a2da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wbrp_r0PcjSS0DCVQK6DQ

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-preflight-audit-1754a2da
```

Example prompt: Can you audit the x402 endpoint at https://api.example.com/s/my-service/data to check whether it's correctly configured, discoverable, and payable on Base?

## When to prefer this

Use this endpoint when you need to programmatically verify that an x402 pay-per-call HTTP API is correctly implementing the x402 protocol — including checking payment metadata, discoverability, and payability on Base. Prefer it over manual inspection or generic HTTP testing tools when you specifically care about x402 protocol compliance, payTo address correctness, USDC amount configuration, and whether the endpoint will be successfully callable by an x402-aware agent.

## Known failure modes

- Endpoint URL is unreachable or returns a non-402 response — report will show payable: false and list issues
- Payment headers are malformed or missing required fields — in_spec will be false with issue details
- Network mismatch (non-Base chain) — report flags network as incompatible
- No endpoints query parameter provided — request may return empty or error response
- Endpoint behind firewall or rate-limiting — audit may timeout or return incomplete results

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns a JSON object with an overall ok boolean, the count of endpoints checked and passing, a per-endpoint reports array (each with url, payTo address, amount, network, in_spec, payable, HTTP status, and any issues), and a summary object counting unpayable 402s, free-paid paths, and undiscoverable paths.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "endpoints": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "checked": {
       "type": "number"
      },
      "passing": {
       "type": "number"
      },
      "reports": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "ok": {
          "type": "boolean"
         },
         "url": {
          "type": "string"
         },
         "payTo": {
          "type": "string"
         },
         "amount": {
          "type": "string"
         },
         "issues": {
          "type": "array"
         },
         "status": {
          "type": "number"
         },
         "in_spec": {
          "type": "boolean"
         },
         "network": {
          "type": "string"
         },
         "payable": {
          "type": "boolean"
         }
        }
       }
      },
      "summary": {
       "type": "object",
       "properties": {
        "unpayable_402s": {
         "type": "number"
        },
        "free_paid_paths": {
         "type": "number"
        },
        "undiscoverable_paths": {
         "type": "number"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "checked": 1,
  "passing": 1,
  "reports": [
   {
    "ok": true,
    "url": "https://api.firstmention.uk/s/funding-rates/carry?symbols=BTC",
    "payTo": "0xddbeE715fEB5232aF1f2B0f07392aAA0c712E572",
    "amount": "10000",
    "issues": [],
    "status": 402,
    "in_spec": true,
    "network": "base",
    "payable": true
   }
  ],
  "summary": {
   "unpayable_402s": 0,
   "free_paid_paths": 0,
   "undiscoverable_paths": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-preflight-audit-1754a2da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
