# x402 Pre-Payment Trust Decision API

> x402 Pre-Payment Trust Decision API is a paid API for AI agents from trust.weatherriskapi.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-14).

Probes a live x402-gated URL and returns a SAFE/CAUTION/AVOID trust decision before an autonomous agent commits a USDC payment

## Facts

- Endpoint: POST https://trust.weatherriskapi.com/v1/x402/pre-payment-check?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-pre-payment-trust-decision-api-3d8af9b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3yJwE9wXVYxAwmeLL6bB_

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 x402-pre-payment-trust-decision-api-3d8af9b0 -d '<json body>'
```

Example prompt: Before paying, run a pre-payment trust check on https://data.example.com/report using GET — I'll accept up to $0.01 USDC and I only want it to pass if it's on Base Mainnet (eip155:8453).

## When to prefer this

Use this endpoint when an autonomous agent needs a deterministic, live go/no-go verdict on an x402-gated resource before committing an on-chain USDC payment. It is specifically designed for x402 v2 protocol compatibility, Base USDC, and CAIP-2 network validation — making it the right choice over generic HTTP health checks or payment simulation tools when the agent must enforce price limits, asset type, network, and schema availability simultaneously before a real payment.

## Known failure modes

- Target URL is unreachable or times out — decision returned as AVOID with latency error reason code
- Target URL does not return HTTP 402 — incompatible endpoint flagged with liveStatus mismatch
- Price returned by endpoint exceeds caller's maxPriceUsd — CAUTION or AVOID with priceWithinLimit: false
- Asset address does not match expected Base USDC contract — assetRecognized: false
- Network is not Base Mainnet eip155:8453 — networkStatus: UNSUPPORTED, decision capped at CAUTION
- Too many redirects detected — flagged in redirectCount with degraded score
- x402 envelope is malformed or wrong version — x402Version mismatch reason code returned

## How this service works

Check x402 endpoint trust and payment compatibility before paying an unfamiliar API. Send the HTTPS resource URL, GET/POST method, maxPriceUsd and allowedNetwork to receive SAFE, CAUTION or AVOID, score, price, schema, resource, redirect and latency evidence. Combines an unsigned live probe with deterministic checks; no seller identity verification or guarantee of paid API reliability. Price: 0.005 USDC per successfully completed assessment.

## Output

Returns a JSON object containing a top-level trust decision (SAFE, CAUTION, or AVOID), a numeric compatibility score (0–100), the live HTTP status observed, price in USD, asset contract address, network identifier, latency in milliseconds, redirect count, x402 version detected, reason codes for any issues, whether the input schema was found, and a timestamp of the assessment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "maxLength": 2048,
   "description": "Public HTTPS x402 resource URL to probe without a payment signature."
  },
  "method": {
   "enum": [
    "GET",
    "POST"
   ],
   "type": "string",
   "description": "HTTP method advertised by the paid resource."
  },
  "maxPriceUsd": {
   "type": "number",
   "maximum": 1000,
   "minimum": 0,
   "multipleOf": 0.000001,
   "description": "Maximum acceptable price in USD-equivalent USDC, with at most six decimal places."
  },
  "expectedAsset": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$",
   "description": "Optional expected EVM asset address. V1 recognizes official Base USDC only."
  },
  "allowedNetwork": {
   "type": "string",
   "pattern": "^[a-z0-9-]+:[A-Za-z0-9-]+$",
   "description": "CAIP-2 payment network allowed by the caller. V1 gives SAFE only to Base Mainnet eip155:8453."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "score": 100,
  "scheme": "exact",
  "source": "live endpoint probe",
  "network": "eip155:8453",
  "decision": "SAFE",
  "priceUsd": "0.005",
  "checkedAt": "2026-10-05T00:00:00.000Z",
  "latencyMs": 180,
  "liveStatus": 402,
  "limitations": [
   "Point-in-time protocol and compatibility assessment; not a fraud or delivery guarantee."
  ],
  "reasonCodes": [],
  "x402Version": 2,
  "networkStatus": "SUPPORTED",
  "redirectCount": 0,
  "resourceMatch": true,
  "assetRecognized": true,
  "priceWithinLimit": true,
  "inputSchemaSource": "bazaar",
  "inputSchemaPresent": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-pre-payment-trust-decision-api-3d8af9b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trust.weatherriskapi.com](https://www.zero.xyz/host/trust.weatherriskapi.com/llms.txt)
