{"uid":"cap_urBPIBCtiUJmpMyv1RWVk","slug":"prescan-x402-endpoint-safety-check-efcbd7e4","name":"Prescan x402 Endpoint Safety Check","description":"Deterministic, explainable checks an agent runs before it reads untrusted text, connects to an MCP server or pays an x402 endpoint. No LLM in the loop, sub-millisecond scans, spans for every finding, published rules (GET /v1/rules) and published precision/recall.\n\nHeuristic signals, not a guarantee: a clean result lowers risk, it does not prove content is safe. Inputs are not stored.","url":"https://prescan.canisell.xyz/v1/check/x402?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","maxLength":2000,"minLength":8,"description":"The x402 endpoint you are about to pay (full URL incl. query). Only GET is sent; nothing is paid."},"max_usd":{"type":"number","maximum":1000000,"description":"Your budget per call in USD; above it the verdict is no_go.","exclusiveMinimum":0},"network":{"type":"string","maxLength":80,"description":"Preferred network, CAIP-2 (eip155:8453) or v1 name (base)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"url":"https://api.canisell.xyz/v1/verdict/0x532f27101965dd16442E59d40670FaF5eBB142E4","http":{"ms":180,"https":true,"status":402,"final_url":"https://api.canisell.xyz/v1/verdict/0x532f27101965dd16442E59d40670FaF5eBB142E4","redirects":[],"truncated":false,"x402_version":2},"score":50,"signals":{"domain":{"age_days":0,"registered":"2026-11-01T18:40:58.0Z","registrable":"canisell.xyz"},"pay_to":{"zero_address":false,"ofac_sanctioned":false,"is_token_contract":false},"x402scan":{"listed":true,"origin_title":"Canisell: can your bot sell it? Pay-per-call risk verdicts for new Base tokens","listed_price_usd":0.01,"listed_resources":2,"listed_pay_to_match":true},"discovery":{"openapi":true,"well_known":true,"advertised_price_usd":0.01}},"summary":"Caution: Domain canisell.xyz was registered 0 day(s) ago. Best option: $0.01 on Base to 0x741f...8feb.","verdict":"caution","findings":[{"id":"domain_very_new","weight":0.5,"message":"Domain canisell.xyz was registered 0 day(s) ago.","severity":"medium"}],"resource":{"url":"https://api.canisell.xyz/v1/verdict/0x532f27101965dd16442E59d40670FaF5eBB142E4","mime_type":"application/json","description":"Pre-trade risk verdict for a Base ERC-20"},"checked_at":"2026-11-02T10:00:00.000Z","safe_to_pay":false,"payment_options":[{"usd":0.01,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","index":0,"amount":"10000","pay_to":"0x741f78ED943C671e25405dAAaAB7b6886C7e8feb","scheme":"exact","network":"eip155:8453","payable":true,"problems":[],"asset_symbol":"USDC","network_name":"Base","max_timeout_seconds":300}],"recommended_option":0}},"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_mndA_bSPr8cMaM6K1b-K1","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":"Runs deterministic, sub-millisecond heuristic checks on an x402 payment endpoint before an agent pays it, returning a verdict, risk signals, and payment options.","exampleAgentPrompt":"Before you pay that x402 endpoint at https://api.example.com/v1/data, run a prescan on it with a max budget of $0.05 on Base and tell me whether it's safe to pay.","exampleUseCases":[{"title":"Pre-payment safety gate for autonomous agent","prompt":"My agent is about to pay https://api.someservice.xyz/v1/report via x402 — can you prescan that URL with a $0.10 max budget on Base before it spends anything, and tell me the verdict and any risk findings?"},{"title":"Vetting a newly discovered MCP pay-per-call tool","prompt":"I found a new pay-per-call endpoint at https://tools.newsite.io/v1/analyze that costs $0.02 per call — prescan it on eip155:8453 with a $0.05 ceiling and let me know if the domain is legit and whether the payment address looks clean."},{"title":"Budget-aware x402 endpoint risk check","prompt":"Before my bot calls https://data.cryptofeed.io/v1/price and pays with USDC, scan it with prescan and flag anything suspicious — set a max of $0.01 so it also fails if the price is over budget."}],"resultDescription":"Returns a JSON object containing: a 'verdict' (e.g. 'caution', 'go', 'no_go'), a numeric risk 'score' (0–100), a 'safe_to_pay' boolean, a human-readable 'summary', a list of 'findings' with severity and weight, structured 'signals' covering domain age, OFAC status, x402scan listing, and discovery metadata, plus 'payment_options' with recommended network, asset, amount, and pay-to address.","failureModes":["URL unreachable or not an x402 endpoint — HTTP status not 402 returned","URL exceeds max_usd budget — verdict is no_go","Domain is OFAC-sanctioned — finding with high severity","Malformed or missing 'url' query parameter — schema validation error","Network identifier not recognized — CAIP-2 parse error","Endpoint returns unexpected content type — truncated or invalid x402 headers"],"whenToPreferThis":"Use this endpoint when an AI agent is about to autonomously pay an x402 endpoint and needs a fast, deterministic risk gate with no LLM in the loop. Prefer it over manual review or LLM-based judgment when sub-millisecond latency matters, auditability via published rules is required, or when inputs must not be stored. It is especially valuable for new or unrecognized domains, when OFAC compliance is a concern, or when enforcing a per-call budget ceiling before committing funds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:31:43.145Z","isFirstParty":false,"canonicalSlug":"prescan-x402-endpoint-safety-check-efcbd7e4"}