{"uid":"cap_S59r6neVsdw-N2mdXx8Vb","slug":"stride20k-x402-preflight-score-cd66ae29","name":"Stride20k x402 Preflight Score","description":"Spend-guard preflight: deterministic 0-100 score for an x402 resource URL before an agent pays it. Probes GET by default, or a caller-supplied/discoverable GET or POST method and JSON body. Decodes asset-aware terms and only scores USD price sanity for recognized USD-pegged default assets, plus origin /.well-known/x402.json, Bazaar presence, and observed age. Raw signals in every response; auditable. Not an endorsement.","url":"https://gateway.stride20k.com/v1/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":["resource"],"properties":{"body":{"type":"string","description":"Optional JSON request body for POST probes. If omitted, use the well-known exampleInput when available, otherwise {}."},"method":{"enum":["GET","POST"],"type":"string","normalize":"upper","description":"Optional safe probe method. If omitted, use the matching well-known endpoint's GET/POST method, then GET."},"resource":{"type":"string","pattern":"^https?://.+","urlSafety":true,"description":"The x402 resource URL to preflight, exactly as advertised."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","endpoint","data","meta"],"properties":{"ok":{"type":"boolean","description":"true on success."},"data":{"type":"object","required":["resource","score","flags","signals"],"properties":{"note":{"type":"string"},"flags":{"type":"array","items":{"type":"string"}},"score":{"type":"number","description":"0-100, deterministic published rubric."},"signals":{"type":"object","properties":{"asset":{"type":["string","null"]},"is402":{"type":"boolean"},"method":{"type":"string"},"scheme":{"type":["string","null"]},"status":{"type":["number","null"]},"network":{"type":["string","null"]},"priceUsd":{"type":["number","null"]},"reachable":{"type":"boolean"},"assetSymbol":{"type":["string","null"]},"amountAtomic":{"type":["string","null"]},"methodSource":{"type":"string"},"payToPresent":{"type":"boolean"},"assetDecimals":{"type":["number","null"]},"termsDecodable":{"type":"boolean"},"observedAgeDays":{"type":["number","null"]},"wellKnownPresent":{"type":"boolean"},"listedInBazaarNow":{"type":["boolean","null"]},"requestBodySource":{"type":"string"},"onChainBuyerCounts":{"type":"string"}}},"resource":{"type":"string"},"bazaarObservation":{"type":"object","required":["status","observedAt","maxAgeSeconds"],"properties":{"status":{"enum":["fresh","stale","unknown"],"type":"string"},"observedAt":{"type":["string","null"]},"maxAgeSeconds":{"type":"number"}},"description":"Dated completed Bazaar walk, not a live lookup. Stale or unknown evidence cannot establish current membership."}}},"meta":{"type":"object","required":["source","cached","fetchedAt"],"properties":{"cached":{"type":"boolean","description":"Whether this response was served from cache."},"source":{"type":"string","description":"Upstream source: direct probe of the target + Aye Pulse collector archive."},"fetchedAt":{"type":"string","description":"ISO 8601 time the data was actually retrieved from the upstream."},"attribution":{"type":["string","null"],"description":"Licensing attribution when the source requires it."}}},"endpoint":{"type":"string","description":"Always \"/v1/preflight\"."}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"note":"Deterministic published rubric over the target's own public surfaces plus our collector archive. Presence and protocol validity, not an endorsement. NOT financial advice.","flags":["age-unknown-or-new"],"score":100,"signals":{"is402":true,"scheme":"exact","status":402,"network":"eip155:8453","priceUsd":0.002,"reachable":true,"payToPresent":true,"termsDecodable":true,"observedAgeDays":0.1,"wellKnownPresent":true,"listedInBazaarNow":true,"onChainBuyerCounts":"unavailable"},"resource":"https://gateway.stride20k.com/fx/:base/:quote"},"meta":{"cached":false,"source":"direct probe of the target + Stride20k collector archive","fetchedAt":"2026-07-04T00:00:00.000Z","attribution":null},"endpoint":"/v1/preflight"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tdJiIe4zQtyut4wFwB58c","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a deterministic 0-100 trust score for any x402 resource URL before an agent pays for it, by probing the live 402 response, well-known manifest, Bazaar listing, and observed age.","exampleAgentPrompt":"Before you pay for that x402 resource at https://api.example.com/v1/data, run a preflight trust check on it and tell me the score and any risk flags.","exampleUseCases":[{"title":"Vet micropayment endpoints before agent payments","prompt":"I'm about to let you call a new x402 API that charges per request. Can you check how trustworthy it is first? Give me the trust score and let me know if there are any red flags I should worry about."},{"title":"Audit x402 resources in bulk for safety","prompt":"I have a list of x402 service URLs we might integrate with. Run a trust check on each one and sort them by score so we only consider the highest-rated, safest ones."},{"title":"Monitor Bazaar-listed x402 providers","prompt":"Can you check if this x402 endpoint is actually listed in Bazaar and tell me how long it's been observed in the ecosystem? I want to make sure it's a real, established provider before we start paying for it."}],"resultDescription":"A JSON object with ok:true/false, a deterministic 0-100 trust score, an array of human-readable flags (e.g. 'valid_402', 'bazaar_listed', 'price_ok'), and a signals object containing: reachable boolean, is402 boolean, termsDecodable, payToPresent, priceUsd, wellKnownPresent, listedInBazaarNow, observedAgeDays, onChainBuyerCounts, network, scheme, and status code. Also includes cache metadata and fetchedAt timestamp.","failureModes":["resource URL is unreachable — score penalized by -20 and reachable:false returned","resource URL is not a valid http/https URL — 400-level error","target URL times out during SSRF-guarded probe — score reflects unreachability","Bazaar lookup unavailable — listedInBazaarNow returned as null","score is 0-100 but is not an endorsement — low score means high risk, not guaranteed fraud"],"whenToPreferThis":"Use this endpoint whenever an AI agent is about to pay for an x402 resource and needs a fast, auditable, pre-payment trust signal. It is the only endpoint that combines live 402 probe, well-known manifest check, Bazaar catalog presence, and observed age into a single deterministic rubric score. Prefer it over manual inspection or other validators when you need a machine-readable risk score with raw signals for downstream logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T22:26:33.127Z","isFirstParty":false,"canonicalSlug":"stride20k-x402-preflight-score-cd66ae29"}