# agent-exec /check/counterparty — x402 Payment Counterparty Risk Check

> agent-exec /check/counterparty — x402 Payment Counterparty Risk Check is a paid API for AI agents from agent-exec.448c.org, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-19).

Scores the risk of an x402 payment counterparty by analyzing a payment quote and returning a verdict, risk score, and human-readable reasons.

## Facts

- Endpoint: POST https://agent-exec.448c.org/check/counterparty?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-exec-check-counterparty-x402-payment-counterparty-risk-check-cc1744ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wcbvQZa9PkhBNaG17Bagt

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 agent-exec-check-counterparty-x402-payment-counterparty-risk-check-cc1744ab -d '<json body>'
```

Example prompt: Before I pay this x402 invoice, check whether this counterparty is safe — the payment is for 20000 USDC units on Base, payer is 0x0000000000000000000000000000000000dEaD, asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, and here's the 402 challenge I received.

## When to prefer this

Use this endpoint when an AI agent operating in an x402 payment flow needs to verify the safety of a counterparty before authorizing a crypto payment — especially when the payer address, payto address, or transaction hash is unknown or untrusted. Prefer this over manual on-chain lookups when you need an aggregated risk score and human-readable verdict in a single call, with no account or API key required.

## Known failure modes

- Missing or malformed payment fields return a validation error
- Unknown asset or network may reduce scoring confidence
- PAYTO_MISMATCH detected when payer address differs from expected recipient
- Low-confidence verdict if public risk feeds have no data on the address
- Network or sandbox downtime results in HTTP 5xx error

## How this service works

Accountless, pay-per-use code execution for software agents: submit source code, get stdout, stderr and exit code back from an isolated, network-less sandbox. No account, no API key -- possession of valid payment is sufficient.

## Output

Returns a JSON object containing a numeric risk score (0–100), a string verdict (e.g. 'avoid' or 'ok'), an array of human-readable reason strings explaining risk findings (e.g. 'PAYTO_MISMATCH'), a copy of the analyzed payment details, the sources consulted, and a disclaimer noting it is a best-effort signal and not financial advice.

## Response schema (JSON Schema)

```json
{
 "example": {
  "score": 70,
  "payment": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "payer": "0x0000000000000000000000000000000000dEaD",
   "amount": "20000",
   "network": "base",
   "transaction": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "reasons": [
   "PAYTO_MISMATCH: quote pays 0x000...dEaD, you expected 0x000...0001"
  ],
  "sources": [
   "the 402 challenge as the caller received it"
  ],
  "verdict": "avoid",
  "disclaimer": "Best-effort signal, not a guarantee; not financial advice. Aggregates public risk feeds."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-exec-check-counterparty-x402-payment-counterparty-risk-check-cc1744ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-exec.448c.org](https://www.zero.xyz/host/agent-exec.448c.org/llms.txt)
