{"uid":"cap_etYDBYNqxN1Rh4nFaLsK1","slug":"onegate-x402-preflight-trust-check-95d15097","name":"OneGate x402 Preflight Trust Check","description":"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.","url":"https://onegate.biz.id/v1/x402/preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hXz3i8R3tgixF1aRS2tb1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an x402 seller endpoint's trustworthiness before an agent pays, checking TLS, DNS, wallet, price, network, email auth, and discoverability.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Guard agent before first payment","prompt":"My AI agent is about to pay an x402 endpoint at https://api.newservice.xyz/report for the first time — run a trust check on it and tell me the score and verdict before it sends any USDC."},{"title":"Enforce price cap on API marketplace","prompt":"Check the x402 seller at https://marketplace.api.io/v1/search and make sure the price is under $0.05 USDC and it's on the Base network (eip155:8453) before we whitelist it for our agent fleet."},{"title":"Verify wallet recipient before payment","prompt":"Before my agent pays anything, verify that the x402 endpoint at https://data.provider.io/premium is actually paying to wallet 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and that the TLS certificate and DNS are clean."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T12:35:57.675Z","isFirstParty":false,"canonicalSlug":"onegate-x402-preflight-trust-check-95d15097"}