{"uid":"cap_w1X1qcsHB1E0oXZHfLPGq","slug":"grokbot-x402-preflight-e1bd8ecf","name":"Grokbot x402 Preflight","description":"Pay-per-call tools for AI agents: read a web page safely with prompt-injection warnings ($0.002), or check an x402 endpoint before paying it ($0.01). USDC on Base, no account.","url":"https://x402-preflight-grokbot.netlify.app/api/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":"Absolute https URL of the x402 endpoint to inspect (include its query string)"},"method":{"enum":["GET","POST"],"type":"string","description":"HTTP method the target expects. Default GET"},"max_usd":{"type":"string","description":"Optional. Your price ceiling in USD; offers above it are flagged"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"bazaar":{"type":"object"},"offers":{"type":"array"},"reasons":{"type":"array"},"verdict":{"enum":["pay","caution","do_not_pay","not_x402"],"type":"string"},"warnings":{"type":"array"},"latencyMs":{"type":"integer"},"httpStatus":{"type":"integer"},"recommendedOffer":{"type":["object","null"]}}}}}}},"responseSchema":{"type":"json","example":{"bazaar":{"listed":true,"checked":true},"method":"GET","offers":[{"flags":[],"payTo":"0xcc69d619E6053F88A4845066518f465bD06Fc96c","scheme":"exact","network":"eip155:8453","priceUsd":0.001,"amountAtomic":"1000","networkLabel":"USDC on Base","assetIsCanonicalUsdc":true}],"target":"https://gas.apitoll.cloud/v1/base/gas?blocks=20","reasons":[],"verdict":"pay","warnings":[],"latencyMs":180,"httpStatus":402,"x402Version":2}},"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":"unknown","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_JAneSbMRWZPn1KaF6VjXT","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":"Inspects an x402 pay-per-call endpoint before payment, returning offers, pricing, verdict, and warnings so an agent can decide whether to pay.","exampleAgentPrompt":"Before I pay that x402 API at https://gas.apitoll.cloud/v1/base/gas?blocks=20, run a preflight check on it — GET method — and tell me the verdict, what it's charging, and any warnings so I can decide if it's safe to pay.","exampleUseCases":[{"title":"Verify price before paying unknown API","prompt":"I found an x402 endpoint at https://data.example.com/prices?ticker=ETH that says it costs money to call — can you do a preflight check on it with GET and tell me the verdict, the exact USDC amount it wants, and whether it looks safe to pay?"},{"title":"Enforce agent budget ceiling","prompt":"My agent is about to call https://news.someprovider.io/api/headlines via GET on x402 — preflight it with a max price ceiling of $0.005 USD and flag it if the offer exceeds that so I don't overspend."},{"title":"Audit x402 listing legitimacy","prompt":"Check whether https://api.weatherpay.xyz/current?city=London is a real x402 endpoint and if it's listed on Bazaar — do a GET preflight and give me the full verdict including any caution flags."}],"resultDescription":"A JSON object with a verdict enum (pay, caution, do_not_pay, or not_x402), an array of payment offers including amount in atomic units and USD, the recommended offer, an array of warnings and reasons, the HTTP status returned by the target, round-trip latency in milliseconds, and whether the endpoint is listed on the Bazaar registry.","failureModes":["Target URL is not an x402 endpoint → verdict returns 'not_x402'","Target endpoint is unreachable or times out → latencyMs will be high, httpStatus may be absent","Offer price exceeds max_usd ceiling → flagged in warnings array","Malformed or missing 'url' query parameter → request rejected","Target returns non-standard x402 headers → parsing errors or caution verdict"],"whenToPreferThis":"Use this endpoint when an AI agent encounters an x402 payment-gated URL and needs to evaluate it before committing USDC — especially when you want an independent verdict on pricing fairness, Bazaar listing status, or suspicious payment parameters. Prefer this over blindly calling the target endpoint, as it costs only $0.01 and can prevent wasted or fraudulent payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:35:50.860Z","isFirstParty":false,"canonicalSlug":"grokbot-x402-preflight-e1bd8ecf"}