# TxPreflight — HTTP Transaction Preflight Check

> TxPreflight — HTTP Transaction Preflight 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).

Performs a preflight GET/HEAD/DELETE HTTP request against a URL and returns its reachability status, page title, and estimated read time before committing to a full operation.

## Facts

- Endpoint: GET https://api.firstmention.uk/s/pageaudit/txpreflight?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/txpreflight-http-transaction-preflight-check-347d3a48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8wZyUVWVyNFV6mQaoJWt8

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 txpreflight-http-transaction-preflight-check-347d3a48
```

Example prompt: Before I process that URL, can you do a quick preflight check on https://example.com using a GET request to confirm it's reachable, see what its title is, and find out roughly how long it would take to read?

## When to prefer this

Use this endpoint when an agent needs to validate that a URL is live and responsive before committing to a heavier operation like full content extraction or scraping. It's ideal for preflight gating in automated workflows, broken-link checking, or quickly retrieving a page's title and read-time estimate without downloading the full content. At $0.01 USDC per call via x402 on Base, it's a low-cost way to avoid wasted downstream API calls on dead URLs.

## Known failure modes

- URL is unreachable or returns 4xx/5xx — ok will be false with the actual status code
- Timeout on slow or unresponsive servers
- Missing or empty title for pages without a <title> tag
- Invalid or malformed URL input causes request failure
- Method not allowed (only GET, HEAD, DELETE are supported)

## 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: ok (boolean indicating success), url (the resolved URL), title (the page title if available), status (HTTP status code), and read_time_min (estimated reading time in minutes). Useful for gating downstream actions on URL reachability.

## 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"
      },
      "url": {
       "type": "string"
      },
      "title": {
       "type": "string"
      },
      "status": {
       "type": "number"
      },
      "verdict": {
       "type": "string"
      },
      "final_url": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "url": "https://example.com",
  "title": "Example Domain",
  "status": 200,
  "read_time_min": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/txpreflight-http-transaction-preflight-check-347d3a48/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)
