{"uid":"cap_r75Kst8vAmBLfS3TVobVy","slug":"safepay-x402-preflight-check-49460fc9","name":"SafePay x402 Preflight Check","description":"Should I pay this x402 endpoint? Verdict pay/caution/block/cannot_pay with reasons: price vs your maxUsd and decoy prices, asset/network, payTo screened against OFAC SDN, Circle/Tether freezes and exploit/phishing/mixer labels, expected payTo, Bazaar track record, broken payment terms. Returns the payment option a standard client would sign.","url":"https://safepay.genexxis.com/preflight?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":["url"],"properties":{"url":{"type":"string","description":"Full URL of the x402 endpoint you are about to pay, with its query string"},"maxUsd":{"type":"string","description":"Your budget for this one payment in USD (default 1); higher price -> block"},"method":{"type":"string","description":"GET (default) or POST; any other value is treated as GET"},"expectPayTo":{"type":"string","description":"Optional: the payTo address you expect; any other -> block"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"url":{"type":"string"},"payTo":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"verdict":{"type":"string"},"isContract":{"type":"boolean"}}}},"bazaar":{"type":"object","properties":{"listed":{"type":"boolean"},"proven":{"type":"boolean"},"calls30":{"type":"integer"},"payers30":{"type":"integer"}}},"method":{"type":"string"},"reasons":{"type":"array"},"verdict":{"type":"string"},"endpoint":{"type":"object","properties":{"latencyMs":{"type":"integer"},"httpStatus":{"type":"integer"},"x402Version":{"type":"integer"},"checkerScore":{"type":"integer"}}},"recommended":{"type":"object","properties":{"usd":{"type":"number"},"asset":{"type":"string"},"chain":{"type":"string"},"payTo":{"type":"string"},"network":{"type":"string"}}}}}}}}},"responseSchema":{"type":"json","example":{"url":"https://api.example.com/v1/quote?symbol=ABC","payTo":[{"address":"0x1234567890abcdef1234567890abcdef12345678","verdict":"no_known_risk","isContract":false}],"bazaar":{"listed":true,"proven":true,"calls30":2210,"payers30":41},"method":"GET","reasons":[],"verdict":"pay","endpoint":{"latencyMs":210,"httpStatus":402,"x402Version":2,"checkerScore":95},"recommended":{"usd":0.003,"asset":"USDC","chain":"Base","payTo":"0x1234567890abcdef1234567890abcdef12345678","network":"eip155:8453"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wQtSG6zmKCOfBKkku-f9D","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Screens an x402 payment endpoint before paying it, returning a pay/caution/block/cannot_pay verdict with OFAC, freeze, exploit, and price sanity checks.","exampleAgentPrompt":"Before you pay that x402 endpoint at https://api.example.com/v1/quote?symbol=ETH, run a SafePay preflight check on it with my max budget of $0.05 and make sure the payTo address is 0x1234567890abcdef1234567890abcdef12345678.","exampleUseCases":[{"title":"Pre-payment safety check for agent","prompt":"Before my agent pays the x402 endpoint at https://data.someapi.com/weather?city=London, check if it's safe — my max budget is $0.01 and I want to make sure it's not flagged for OFAC, phishing, or mixer activity."},{"title":"Decoy price attack detection","prompt":"I'm about to call an x402 API at https://api.pricedata.io/v1/prices?ticker=BTC — can you verify the price is reasonable for my $0.05 budget and flag it if it looks like a decoy price attack?"},{"title":"Verify Bazaar-listed endpoint track record","prompt":"Check if the x402 endpoint https://api.nlp.tools/v2/sentiment is trustworthy — I want to see its Bazaar track record, how many payers it has, and whether I should go ahead and pay it."}],"resultDescription":"Returns a JSON object with a top-level verdict (pay/caution/block/cannot_pay), per-address risk assessments including OFAC/freeze/exploit/phishing/mixer labels, Bazaar listing and proven status with 30-day call and payer counts, and the specific recommended payment option (asset, chain, payTo, USD amount) that a standard x402 client would sign.","failureModes":["URL not reachable or not an x402 endpoint — cannot_pay verdict returned","Price exceeds maxUsd budget — block verdict with price reason","payTo address matches OFAC SDN list — block verdict with sanction reason","payTo address matches Circle/Tether freeze list — block verdict","payTo address labeled as exploit, phishing, or mixer — block or caution verdict","expectPayTo mismatch — block verdict with address mismatch reason","x402 endpoint returns non-402 HTTP status — cannot_pay verdict","Malformed or missing query parameters — HTTP 400 error"],"whenToPreferThis":"Use SafePay preflight before any automated x402 micropayment when your agent needs compliance assurance (OFAC/SDN screening), protection against decoy price attacks, or wants to verify a payTo address has no known exploit/phishing/mixer labels. Prefer it over blind payment when operating with untrusted or newly-discovered x402 endpoints, when a Bazaar track record matters for trust scoring, or when you need the exact recommended payment option pre-computed for a standard x402 client to sign.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:37:02.143Z","isFirstParty":false,"canonicalSlug":"safepay-x402-preflight-check-49460fc9"}