{"uid":"cap_tulBvSt0bv5gZLzxzIJPi","slug":"avedaris-counterparty-preflight-f2d3c1f8","name":"AveDaris Counterparty Preflight","description":"Pre-payment economic and structural preflight for an external Base USDC counterparty: check endpoint reachability, payment terms, recipient format, caller budget, and economic ceiling before any external payment is made. $0.025 USDC per call on Base.","url":"https://api.avedaris.com/v1/paid/counterparty-preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"endpoint":{"type":"string","maxLength":8192,"minLength":8,"description":"Public HTTP(S) seller endpoint to preflight."},"maxSpendUsd":{"type":"number","description":"Caller hard budget ceiling for this prospective purchase.","exclusiveMinimum":0},"outcomeValueUsd":{"type":"number","description":"Optional caller-estimated value of a successful outcome. AUN does not infer this in v1.","exclusiveMinimum":0},"paymentRequirement":{"type":"object","required":["amountUsd","network","asset","payTo"],"properties":{"asset":{"type":"string","description":"v1 accepts USDC or the canonical Base USDC contract address."},"payTo":{"type":"string","description":"Proposed EVM settlement recipient."},"network":{"type":"string","description":"v1 accepts Base / eip155:8453."},"amountUsd":{"type":"number","description":"Quoted price in USD as a positive number, e.g. 0.01.","exclusiveMinimum":0}},"description":"The seller's quoted x402 payment requirement to check before paying, as amountUsd, network, asset and payTo.","additionalProperties":false},"maxEconomicallyRationalSpendUsd":{"type":"number","description":"Optional caller economic ceiling; defaults to maxSpendUsd.","exclusiveMinimum":0}}},"responseSchema":{"type":"json","example":{"result":{"scope":"base_usdc_x402_preflight_v1","decision":"allow","evidence":[{"code":"network_supported","status":"pass"}],"confidence":0.93,"economicFit":{"requestedWithinBudget":true,"requestedWithinEconomicCeiling":true},"advisoryOnly":true,"paymentExecuted":false}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","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.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HltHRpr2qs_k5fYa2bNVU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pre-validates a prospective x402 micropayment transaction against budget ceilings, network support, and counterparty safety before committing funds.","exampleAgentPrompt":"Before paying that API, run a preflight check — the seller endpoint is https://api.example.com/v1/generate, I want to cap my spend at $0.10, and the payment requirement is 0.05 USDC on Base going to 0xAbCd...1234. Tell me if it's safe to proceed.","exampleUseCases":[{"title":"Budget gate before agent API call","prompt":"I'm about to call a paid AI service at https://api.someservice.com/v1/analyze that charges 0.03 USDC on Base — before I send the payment, can you preflight it and make sure it's within my $0.05 budget ceiling and that the network is supported?"},{"title":"Economic rationality check for high-value task","prompt":"I'm considering paying 0.08 USDC to https://api.dataprovider.com/v1/lookup on Base network, and I estimate the outcome is worth about $0.50 to me — can you run a preflight to see if this spend makes economic sense against my $0.10 hard ceiling?"},{"title":"Safety check before autonomous agent payment","prompt":"My agent is about to autonomously pay 0.025 USDC on Base to address 0xDEaD...bEeF at https://api.thirdparty.com/v1/result — before it executes anything, preflight that counterparty and tell me if it gets a pass with high confidence."}],"resultDescription":"Returns a JSON object containing a decision ('allow' or 'deny'), a confidence score (0-1), an array of evidence codes with pass/fail statuses (e.g. 'network_supported'), economic fit flags indicating whether the requested amount is within budget and economic ceiling, and advisory metadata confirming no payment was executed.","failureModes":["Invalid or unreachable seller endpoint URL returns a failed evidence code or error","Unsupported network or asset (non-Base / non-USDC) results in a failed preflight decision","maxSpendUsd set to zero or negative is rejected by schema validation","Missing required paymentRequirement fields (amountUsd, network, asset, payTo) cause a 400-level error","Requested amount exceeding maxSpendUsd results in economicFit.requestedWithinBudget = false and likely a deny decision"],"whenToPreferThis":"Use this endpoint when an AI agent needs to validate an x402-style micropayment on Base/USDC before committing funds — especially when operating autonomously with budget constraints. It is advisory-only (no funds move), making it a safe, zero-risk gate before payment execution. Prefer this over directly attempting payment when counterparty trust, network compatibility, or budget rationality is uncertain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:01:10.777Z","isFirstParty":false,"canonicalSlug":"avedaris-counterparty-preflight-f2d3c1f8"}