# x402-preflight Batch URL Safety Check

> x402-preflight Batch URL Safety Check 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).

Checks multiple URLs in batch to determine if they are safe to pay via the x402 protocol, returning an overall payability verdict and per-URL results.

## Facts

- Endpoint: GET https://api.firstmention.uk/s/x402-preflight/batch?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-batch-url-safety-check-81615936
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_amNUKFQnLDYkashwio6iH

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-batch-url-safety-check-81615936
```

Example prompt: Before my agent starts paying for these three x402 API endpoints — https://api.firstmention.uk/s/websearch, https://api.firstmention.uk/s/webread, and https://api.firstmention.uk/s/edgar — can you run a batch preflight check to confirm they're all safe to pay and actually payable via x402?

## When to prefer this

Use this endpoint when you need to validate multiple x402 payment endpoints in a single call before your agent commits USDC. It is more efficient than calling the single-URL x402-preflight endpoint repeatedly and gives an aggregated 'overall_verdict' across all URLs. Prefer it when building automated payment workflows that must gate spending on confirmed URL legitimacy.

## Known failure modes

- Missing or malformed 'urls' query parameter returns an error or empty results
- Unreachable URLs in the batch may cause individual result failures while others succeed
- Invalid HTTP method (not GET, HEAD, or DELETE) is rejected by schema validation
- Rate limiting or payment failure via x402 may prevent the preflight from executing
- URLs that don't implement x402 may return non-payable verdicts

## 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 'ok' boolean, a 'count' of URLs checked, a 'results' array with per-URL details, a 'safe_to_pay' boolean indicating whether all URLs passed safety checks, and an 'overall_verdict' string (e.g. 'payable') summarizing the batch assessment.

## 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": {
      "urls": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "count": {
       "type": "number"
      },
      "results": {
       "type": "array"
      },
      "safe_to_pay": {
       "type": "boolean"
      },
      "overall_verdict": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "count": 2,
  "results": [],
  "safe_to_pay": true,
  "overall_verdict": "payable"
 }
}
```

## More

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