# Domain Trust Preflight Check

> Domain Trust Preflight Check is a paid API for AI agents from base-agent-preflight.bytoken2023.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-13).

Inspects a domain's DNS, DNSSEC, mail records, CNAME chains, RDAP registration age/expiration, and trust signals to assess domain safety before interaction.

## Facts

- Endpoint: GET https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/web/domain-trust-preflight
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/domain-trust-preflight-check-6452162b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rNDkg9sGvDx25pNlZSTh0

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 domain-trust-preflight-check-6452162b
```

Example prompt: Before I pay that API at bytoken2023.workers.dev, can you run a domain trust preflight on bytoken2023.workers.dev — check its DNS, DNSSEC, mail records, CNAME chain, registration age, and whether it looks legit?

## When to prefer this

Use this endpoint when an AI agent needs to vet an unknown domain before executing a payment, API call, or integration — especially to detect newly registered, expiring, or misconfigured domains that may indicate phishing or fraud. Prefer this over generic WHOIS tools when you need a consolidated trust signal combining DNS, DNSSEC, mail hygiene, CNAME resolution, and RDAP age in a single machine-readable response.

## Known failure modes

- Domain parameter missing or malformed — returns validation error
- Domain does not exist in public DNS — returns NXDOMAIN or lookup failure
- RDAP registry unreachable — partial result with missing registration data
- DNSSEC data unavailable for TLD or registrar — partial result
- Payment not fulfilled (x402) — returns 402 Payment Required

## How this service works

Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.

## Output

Returns a structured report covering DNS configuration, DNSSEC validation status, mail security records (SPF/DKIM/DMARC), CNAME resolution chain, RDAP-derived domain registration age and expiration date, and an overall trust/identity assessment with provenance signals.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "pattern": "^(?=.{1,253}$)(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+[A-Za-z]{2,63}$",
       "description": "Registrable or delegated public DNS domain name."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "network": {
       "type": "string"
      },
      "product": {
       "type": "string"
      },
      "activity": {
       "type": "object"
      },
      "identity": {
       "type": "object"
      },
      "assessment": {
       "type": "object"
      },
      "provenance": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "eip155:8453",
  "product": "domain-trust-preflight",
  "assessment": {
   "flags": [],
   "risk_level": "low",
   "risk_score": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domain-trust-preflight-check-6452162b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-agent-preflight.bytoken2023.workers.dev](https://www.zero.xyz/host/base-agent-preflight.bytoken2023.workers.dev/llms.txt)
