{"uid":"cap_eLTtphfw-hlATMQ9-Cto5","slug":"spendpreflight-3175847d","name":"SpendPreflight","description":"Operated by SpendPreflight: sanctions screening and allow/hold/block preflight for x402 payments.","url":"https://api.spendpreflight.com/v1/preflight?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":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"reasons":["allow: all rules passed"],"receipt":{"id":"…","ts":"…","decision":"allow","input_sha256":"…"},"decision":"allow"}},"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_5QUquSSNx-hgB8NfMNL-_","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":"Pre-authorizes AI agent payments by evaluating x402 PaymentRequired responses or carts against configurable spending rules, returning an allow/hold/block decision with the cheapest acceptable payment option and a receipt ID.","exampleAgentPrompt":"Before paying this x402 PaymentRequired response, check it against my rules: max $5 per payment, $50 daily cap, and block any domain I haven't seen for at least 7 days — tell me if it's safe to proceed and what the cheapest payment option is.","exampleUseCases":[{"title":"Capping autonomous agent daily spend","prompt":"My AI agent is about to make a payment — run a preflight check on this x402 PaymentRequired body with a $10 per-payment max and a $100 daily cap, and let me know if it should be allowed, held, or blocked."},{"title":"Blocking unknown merchant domains","prompt":"Before my agent pays this invoice, screen the x402 response and block it if the domain is newer than 14 days on my allowlist — I only want it to pay trusted sites I've seen before."},{"title":"Finding cheapest option in a multi-option payment","prompt":"I received a x402 PaymentRequired with multiple payment options — run a preflight check with no special rules and just tell me which option is cheapest and whether it's safe to pay."}],"resultDescription":"A JSON object containing: a 'decision' field (allow, hold, or block), a 'reasons' array explaining the decision in plain language, the cheapest acceptable payment option from the provided x402 body, and a 'receipt' object with a unique ID, timestamp, decision, and SHA-256 hash of the input for audit purposes.","failureModes":["Malformed or missing x402 PaymentRequired body returns a validation error","Unsupported x402 version (not v1 or v2) may cause parsing failure","Conflicting rules (e.g. per-payment max lower than minimum network fee) may always return block","If the daily cap has already been reached, all payments will be blocked regardless of amount","Domain age rules may block legitimate new merchants not yet on the allowlist"],"whenToPreferThis":"Use this endpoint before every AI agent payment to enforce spending guardrails without risking funds — it is read-only and never signs or settles transactions. Prefer it over manual rule checks when your agent handles x402 PaymentRequired responses or needs auditable receipts for every payment decision. It is especially valuable when running autonomous agents with real budgets, needing daily caps, per-payment limits, domain allowlisting, or hold-for-review workflows before committing USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T21:40:51.583Z","isFirstParty":false,"canonicalSlug":"spendpreflight-3175847d"}