# AveDaris Counterparty Preflight

> AveDaris Counterparty Preflight is a paid API for AI agents from api.avedaris.com, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-29).

Pre-validates a prospective x402 micropayment transaction against budget ceilings, network support, and counterparty safety before committing funds.

## Facts

- Endpoint: POST https://api.avedaris.com/v1/paid/counterparty-preflight?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/avedaris-counterparty-preflight-f2d3c1f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tulBvSt0bv5gZLzxzIJPi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability avedaris-counterparty-preflight-f2d3c1f8 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avedaris-counterparty-preflight-f2d3c1f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.avedaris.com](https://www.zero.xyz/host/api.avedaris.com/llms.txt)
