# ARN x402 PayGuard Preflight

> ARN x402 PayGuard Preflight is a paid API for AI agents from agent-reliability-network.rajdeep-dutta-in.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Performs live preflight security checks on an x402 payment endpoint before an AI agent authorizes payment, returning ALLOW, CAUTION, or BLOCK with detailed check results.

## Facts

- Endpoint: POST https://agent-reliability-network.rajdeep-dutta-in.workers.dev/preflight
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arn-x402-payguard-preflight-692a518c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YP6oBI1L4VMyFeITvQw1m

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 arn-x402-payguard-preflight-692a518c -d '<json body>'
```

Example prompt: Before you pay that x402 API at https://api.example.com/data, run a PayGuard preflight check on it — I'm planning to spend up to 0.05 USDC and want to make sure the price, payTo address, and network all look safe before you authorize anything.

## When to prefer this

Use this endpoint whenever an AI agent is about to authorize an x402 micropayment to an unknown or untrusted seller, especially in automated agentic loops where human oversight is limited. It is the right choice over generic HTTP probers or static allowlists because it performs live, x402-protocol-aware security checks including payment challenge stability, canonical USDC asset verification, payTo address safety, and redirect detection — all specific to the x402 payment protocol on Base/EVM chains.

## Known failure modes

- Seller endpoint is unreachable — reachable:false returned with BLOCK decision
- x402 challenge is unstable between requests — challenge_stable:false triggers CAUTION or BLOCK
- Quoted price exceeds intended_spend_usdc — within_intended_spend:false triggers BLOCK
- Non-canonical USDC asset address detected — canonical_usdc:false triggers BLOCK
- Unsafe redirect detected on seller endpoint — no_unsafe_redirect:false triggers BLOCK
- PayGuard service itself is unreachable or returns HTTP error
- Malformed URL input causes validation failure before live check

## How this service works

ARN x402 PayGuard: Live x402 payment security for AI agents. Verify sellers before payment with preflight checks for price, network, asset, payTo, redirects, and payment-challenge consistency. Returns ALLOW, CAUTION, or BLOCK.

## Output

A JSON object containing a 'decision' field (ALLOW, CAUTION, or BLOCK), a full breakdown of 20+ named boolean security checks (HTTPS, address validity, redirect safety, price consistency, network support, etc.), the quoted price in USDC and atomic units, the payTo and asset addresses, the network identifier, latency_ms, warnings, errors, and reason_codes explaining any non-ALLOW decision.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "HTTPS URL of the x402 seller endpoint to inspect live"
  },
  "intended_spend_usdc": {
   "type": "number",
   "description": "Optional maximum USDC amount the buyer intends to authorize",
   "exclusiveMinimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "payTo": "0x1111111111111111111111111111111111111111",
  "checks": {
   "https": true,
   "x402_v2": true,
   "http_402": true,
   "reachable": true,
   "x402_valid": true,
   "exact_payment": true,
   "canonical_usdc": true,
   "positive_amount": true,
   "challenge_stable": true,
   "resource_binding": true,
   "content_type_sane": true,
   "supported_network": true,
   "no_unsafe_redirect": true,
   "reasonable_timeout": true,
   "asset_address_valid": true,
   "pay_to_address_valid": true,
   "pay_to_safe_receiver": true,
   "within_intended_spend": true,
   "structured_response_sane": true,
   "response_size_within_limit": true
  },
  "errors": [],
  "scheme": "exact",
  "network": "eip155:8453",
  "decision": "ALLOW",
  "warnings": [],
  "reachable": true,
  "latency_ms": 42,
  "x402_valid": true,
  "methodology": "live-security-v1",
  "reason_codes": [],
  "x402_version": 2,
  "payment_required": true,
  "quoted_price_usdc": 0.03,
  "intended_spend_usdc": 0.03,
  "quoted_price_atomic": "30000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arn-x402-payguard-preflight-692a518c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-reliability-network.rajdeep-dutta-in.workers.dev](https://www.zero.xyz/host/agent-reliability-network.rajdeep-dutta-in.workers.dev/llms.txt)
