{"uid":"cap_Ds04O4Lb2xD4TwSt5Wbe_","slug":"x402-crediting-swarm-threat-intelligence-for-x402-payments-5905f3db","name":"x402 Crediting Swarm — Threat Intelligence for x402 Payments","description":"3-node swarm that scores x402 Payment Required calls and returns a GO/NO-GO credit recommendation.","url":"https://x402-crediting-swarm.vercel.app/api/swarm?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["payload"],"properties":{"payload":{"type":"object","required":["endpoint_url"],"properties":{"payTo":{"type":"string","description":"Observed payTo on the 402"},"vendor_id":{"type":"string"},"endpoint_url":{"type":"string","description":"HTTPS resource URL from the x402 catalog entry"},"vendor_history":{"type":"object","properties":{"dispute_ratio":{"type":"number"},"fulfillment_rate":{"type":"number"}}},"requested_amount_sats":{"type":"number"}},"description":"x402 Payment Required call details and vendor metadata to score","additionalProperties":true},"caller_id":{"type":"string","description":"Optional caller identifier for AgentMail alerts"}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["status","final_creditability_score","final_recommendation"],"properties":{"status":{"type":"string"},"caller_id":{"type":"string"},"trust_level":{"type":"string"},"node_reports":{"type":"array"},"agentcash_intel":{"type":"object"},"aggregated_flags":{"type":"array","items":{"type":"string"}},"final_recommendation":{"type":"string"},"final_creditability_score":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"status":"success","caller_id":"agentcash","trust_level":"High Trust (Safe to auto-pay)","node_reports":[{"node":"x402_node_alpha","flags":[],"score":830,"trust_level":"High Trust (Safe to auto-pay)","recommendation":"GO"}],"aggregated_flags":[],"final_recommendation":"GO","final_creditability_score":820}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yFHheZuKCsGXBFQHKveWl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a three-node GO/NO-GO swarm analysis on an x402 Payment Required payload and vendor metadata to produce a creditability score and final recommendation on Base mainnet.","exampleAgentPrompt":"Before my agent pays this x402 endpoint at https://api.example.com/resource — payTo address 0xABC123, 500 sats requested — can you run it through the crediting swarm to see if it's trustworthy and get a GO or NO-GO?","exampleUseCases":[{"title":"Pre-payment safety check for autonomous agent","prompt":"My agent just hit a 402 on https://data.vendor.io/feed with payTo 0xDEADBEEF and a request for 1000 sats — run it through the swarm and tell me if I should let it pay."},{"title":"Vendor due diligence before onboarding","prompt":"Before I whitelist this x402 vendor at https://api.newvendor.io/query — vendor ID vendor_42, dispute ratio 0.03, fulfillment rate 0.94 — can you get me a creditability score and recommendation?"},{"title":"Real-time fraud detection in agent payment loop","prompt":"My payment agent is about to settle a 200-sat USDC request on Base from endpoint https://feeds.unknown-service.xyz/live — check if that endpoint and payTo address 0x1234ABCD look legitimate before it goes through."}],"resultDescription":"Returns a JSON object with a final_creditability_score (integer), final_recommendation (GO or NO-GO), trust_level string, an array of node_reports from three independent analysis nodes, aggregated_flags listing detected risk signals, and agentcash_intel with additional on-chain context. Optionally includes a caller_id for AgentMail alert routing.","failureModes":["HTTP 402 with PAYMENT-REQUIRED body if the $0.05 USDC x402 payment is not included or fails to settle","HTTP 400 if the request body is missing the required payload object","HTTP 402 if payment settlement via the CDP facilitator fails after submission","Malformed or incomplete vendor metadata may degrade scoring accuracy without returning an error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a structured GO/NO-GO decision before settling an x402 micropayment on Base mainnet — especially when vendor history, payTo address legitimacy, or endpoint reputation are unknown. Prefer this over simple on-chain lookups when you need multi-node consensus scoring and aggregated fraud flags rather than a single data point.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T12:33:23.581Z","isFirstParty":false,"canonicalSlug":"x402-crediting-swarm-threat-intelligence-for-x402-payments-5905f3db"}