{"uid":"cap_yMseVXCuHxdmL1I7nIIUX","slug":"capi2-agent-commerce-x402-payment-safety-930554a2","name":"CAPI2 Agent Commerce x402 Payment Safety","description":"Programmable authority checks and tamper-evident receipts for autonomous agents, sold through sustainable x402 commerce.","url":"https://capi2-agent-commerce.vandurmedries.workers.dev/v1/x402-payment-safety","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"policy":{"type":"object"},"payment_required":{"type":"object"}}},"responseSchema":{"type":"json","example":{"verdict":"allow","findings":[],"risk_score":0,"approved_option":{"amount":"10000","network":"eip155:8453"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qb0gyIjIVHwPRxIjWmKrS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an x402 payment request against a policy and returns a safety verdict with risk score and approved payment option","exampleAgentPrompt":"Before I pay this x402 invoice for 10000 units on Base (eip155:8453), run it through the payment safety check using my current policy to make sure the risk score is acceptable and I get a verdict and approved option back.","exampleUseCases":[{"title":"Pre-payment risk screening for AI agent","prompt":"I'm about to have my agent pay an x402-gated API — can you validate this payment_required object against my policy and tell me the verdict and risk score before it actually sends any funds?"},{"title":"Policy compliance check for micropayments","prompt":"My policy only allows payments under 50000 units on Base mainnet — run this x402 payment request through the safety checker and confirm it gets an 'allow' verdict before my agent proceeds."},{"title":"Audit trail for sustainable commerce","prompt":"Check this x402 payment request against my compliance policy and give me the full findings and approved payment option so I have a verifiable record of the safety assessment."}],"resultDescription":"Returns a JSON object containing: a 'verdict' field ('allow' or 'deny'), a 'findings' array with any policy violations or risk signals, a numeric 'risk_score' (0 = no risk), and an 'approved_option' object specifying the approved payment amount and network (e.g. eip155:8453 for Base).","failureModes":["Missing or malformed 'policy' object results in validation error","Missing or malformed 'payment_required' object returns error response","Network not recognized or unsupported chain ID causes rejection","Payment amount exceeds policy limits resulting in 'deny' verdict","Service unavailable on Cloudflare Workers edge returns 5xx error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to screen an x402 payment request against a configurable policy before executing a payment — especially in autonomous agent pipelines where safety guardrails, verifiable receipts, and risk scoring are required before any funds move. Prefer this over generic payment processors when you specifically need x402 protocol support with policy-based allow/deny verdicts and evidence-backed findings on the Base network.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:43:43.270Z","isFirstParty":false}