# OneGate x402 Preflight Trust Check

> OneGate x402 Preflight Trust Check is a paid API for AI agents from onegate.biz.id, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-27).

Validates an x402 seller endpoint's trustworthiness before an agent pays, checking TLS, DNS, wallet, price, network, email auth, and discoverability.

## Facts

- Endpoint: POST https://onegate.biz.id/v1/x402/preflight?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onegate-x402-preflight-trust-check-95d15097
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_etYDBYNqxN1Rh4nFaLsK1

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 onegate-x402-preflight-trust-check-95d15097 -d '<json body>'
```

Example prompt: Before my agent pays this x402 endpoint at https://api.example.com/data, run a preflight trust check on it — confirm it's on Base (eip155:8453), the price is under $0.10 USDC, and the wallet paying to is 0xABCDEF1234567890abcdef1234567890abcdef12.

## When to prefer this

Use this endpoint whenever an AI agent is about to make an x402 payment to an unfamiliar or unvetted seller endpoint, especially for first-time payments, onboarding new APIs into an agent workflow, enforcing price caps, or confirming wallet recipients. Prefer this over manual inspection when you need a structured, scored trust report with granular per-check results covering TLS, DNS, wallet history, email auth, and discoverability in a single call with no account or API key required.

## Known failure modes

- Seller URL returns non-402 status — check reports unexpected HTTP status
- TLS certificate invalid or expired — check fails with certificate error detail
- Price exceeds maxPriceUsdc — check flagged as fail with actual price
- Network mismatch — check fails if seller network differs from required network
- expectedPayTo mismatch — check fails when recipient address doesn't match
- Seller not reachable — network timeout or DNS failure reported in checks
- Discovery listing not found — check passes but listed=false flagged in discovery object

## How this service works

onegate is a set of pay-per-call x402 endpoints for AI agents. It includes a preflight checker that verifies an x402 seller before your agent pays it, on-chain swap flow feeds with wallet attribution, single-use action leases with signed receipts, and an MCP server. No account, no API key.

## Output

Returns a JSON object with a numeric trust score (0-100), a verdict (e.g. 'pay_ok'), an array of named checks each with pass/fail/warn status and detail text, parsed price and asset info, TLS certificate details, discovery listing status, and a human-readable recommendation string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Absolute http(s) URL of the x402 endpoint."
  },
  "body": {
   "type": "object",
   "description": "Optional JSON body for POST sellers that validate the body before returning 402."
  },
  "method": {
   "enum": [
    "GET",
    "POST"
   ],
   "type": "string",
   "default": "GET"
  },
  "network": {
   "type": "string",
   "description": "Optional required network, e.g. eip155:8453."
  },
  "discoveryUrl": {
   "type": "string",
   "format": "uri",
   "description": "Optional Bazaar discovery base URL override."
  },
  "maxPriceUsdc": {
   "type": "number",
   "maximum": 1000,
   "minimum": 0,
   "description": "Maximum acceptable price in USDC."
  },
  "expectedPayTo": {
   "type": "string",
   "description": "Optional expected recipient address."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "target": {
    "host": "www.api-xpay.com",
    "status": 402
   },
   "accepted": {
    "usdc": true,
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "network": "eip155:8453",
    "amountUsdc": 0.005
   },
   "discovery": {
    "listed": false,
    "checked": true,
    "matches": false
   },
   "recommendation": "Structurally valid 402 challenge with no hard trust failures. Verify the work before paying a large amount."
  },
  "meta": {
   "engine": "trust402",
   "service": "onegate"
  },
  "score": 84,
  "checks": [
   {
    "id": "accept.amount",
    "detail": "Price is $0.005000 USDC.",
    "status": "pass"
   },
   {
    "id": "seller.tls",
    "detail": "Certificate is valid and expires in 49 days.",
    "status": "pass"
   }
  ],
  "verdict": "pay_ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onegate-x402-preflight-trust-check-95d15097/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onegate.biz.id](https://www.zero.xyz/host/onegate.biz.id/llms.txt)
