{"uid":"cap_Ssfi25Dh4IcBz1pG7wkVg","slug":"safepay402-guard-pre-payment-security-check-3bdb43f4","name":"SafePay402 Guard - Pre-Payment Security Check","description":"Pre-payment security checks for x402 payments. Explainable ALLOW/REVIEW/BLOCK/UNKNOWN verdicts with risk signals, before an AI agent sends funds. The paid endpoint is monetized via the x402 protocol (USDC on Base): an unpaid request returns HTTP 402 with payment requirements.","url":"https://guard.safepay402.com/v1/guard/check","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_url","payee_address"],"properties":{"asset":{"type":"string","description":"Payment asset symbol, e.g. USDC"},"amount":{"type":"string","description":"Payment amount in asset units, e.g. 0.025"},"policy":{"type":"object","description":"Optional agent policy: allowed_networks[], allowed_assets[], max_amount"},"network":{"type":"string","description":"CAIP-2 network id, e.g. eip155:8453 (Base)"},"payment_id":{"type":"string","description":"Optional idempotency key — repeated calls return the cached verdict"},"resource_url":{"type":"string","description":"The x402 resource URL the agent is about to pay"},"payee_address":{"type":"string","description":"EVM address (0x…) that would receive the payment"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"signals":[{"type":"positive","source":"live_probe","description":"Live check: the endpoint's 402 response demands exactly this payee address"},{"type":"positive","source":"onchain","description":"Payee wallet has existed for over 10 months"}],"sources":["sanctions","onchain","live_probe","historical_x402"],"summary":"No significant risk signals. The payee and payment terms look trustworthy.","verdict":"ALLOW","checked_at":"2026-07-21T09:15:33Z","confidence":0.87,"risk_score":12,"recommendation":"Payment can be executed safely.","ruleset_version":"2026.07.1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_y5ptf1zZMFjquVlAfun5o","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 recipient and terms before funds are sent, returning an ALLOW/REVIEW/BLOCK/UNKNOWN verdict with a 0-100 risk score and named risk signals.","exampleAgentPrompt":"Before you pay, run a SafePay402 guard check on this x402 request — the resource URL is https://api.example.com/data, the payee is 0xAbC123...456, network is eip155:8453 (Base), asset is USDC, and the amount is 0.025. Tell me if I should allow, review, or block the payment.","exampleUseCases":null,"resultDescription":"Returns a verdict of ALLOW, REVIEW, BLOCK, or UNKNOWN, a numeric risk score from 0-100, and a list of named risk signals with sources — including OFAC sanctions hits, scam-address matches, on-chain wallet age and activity on Base, live re-verification of the 402 endpoint's current payee (detects hijacks), and behavioral flags like payee rotation or price spikes.","failureModes":["Missing required resource_url or payee_address returns a 400 error","Unresolvable or offline resource_url may return UNKNOWN verdict","Unrecognized network ID may return an error or degrade signal quality","Wallet with no on-chain history returns limited signals and likely UNKNOWN","Service unavailability returns 503, leaving the agent without a safety verdict"],"whenToPreferThis":"Use this endpoint whenever an AI agent is about to autonomously send funds via the x402 protocol and needs a pre-payment safety gate. It is the only known endpoint combining OFAC sanctions screening, scam-address databases, on-chain wallet analysis on Base, live payee re-verification (anti-hijack), and behavioral history in a single call. Prefer it over generic address checkers when you need x402-specific hijack detection and explainable verdicts with named signals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:33:05.596Z","isFirstParty":false}