# x402-preflight

> x402-preflight 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-25).

Probes and audits any x402-paid HTTP endpoint, returning a structural health score, TLS checks, response headers, and uptime signals.

## Facts

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

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-bba7fec3
```

Example prompt: Run a preflight audit on my x402 endpoint at https://api.myservice.com/data using a GET request and tell me the health score, any failed checks, and whether TLS is valid.

## When to prefer this

Use this endpoint when you need to verify that an x402-gated HTTP API is correctly implementing the 402 Payment Required challenge, check TLS configuration, or diagnose integration issues before going live. It is purpose-built for x402 compliance auditing and is the right choice over generic HTTP monitoring tools when the target is a payment-gated endpoint following the x402 protocol.

## Known failure modes

- Target URL is unreachable — returns a failed check result rather than a score
- Non-x402 URL provided — structural checks will fail or score will be very low
- Invalid HTTP method supplied (only GET, HEAD, DELETE accepted)
- Target endpoint requires auth or IP allowlisting — probe may see a different response than real clients
- TLS errors on the target may cause connection-level failures before checks run

## 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 health score (0–1 number), the HTTP status received, a pass/fail breakdown of individual checks (e.g. TLS validity, correct 402 status, well-formed payment header, response headers), and the target URL. Failures include descriptive check names so the caller can identify exactly what is misconfigured.

## 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": {
      "url": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "asset": {
       "type": "string"
      },
      "network": {
       "type": "string"
      },
      "verdict": {
       "type": "string"
      },
      "problems": {
       "type": "array"
      },
      "price_usd": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "x402": {
   "asset": "USDC",
   "payTo": "0x...",
   "network": "base",
   "price_usd": "0.01"
  },
  "verdict": "payable",
  "problems": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-preflight-bba7fec3/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)
