# x402-policy Trust Score API

> x402-policy Trust Score API is a paid API for AI agents from x402-api-seven.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Returns a trust score for an AI agent based on its on-chain spending history across multiple blockchain networks, used for spending policy decisions.

## Facts

- Endpoint: GET https://x402-api-seven.vercel.app/v1/trust-score?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-policy-trust-score-api-aa62948a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gntm84asNmvaVx4MQksFP

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-policy-trust-score-api-aa62948a
```

Example prompt: What's the x402 trust score for agent 0xabc123? I want to know how trustworthy it is across Base and Ethereum before approving its spending policy.

## When to prefer this

Use this endpoint when you need to programmatically assess the on-chain reputation of an AI agent wallet before authorizing spending, enforcing a micropayment policy, or granting elevated trust. Prefer this over manual blockchain lookups when you need a normalized, multi-chain trust score in a single call within an x402-enabled payment flow.

## Known failure modes

- Invalid or malformed agent_id returns an error or empty result
- Agent address with no on-chain history may return a zero or null trust score
- Network errors or Vercel cold-start latency may cause timeouts
- Payment failure via x402 ($0.001 USDC) results in 402 Payment Required response
- Unsupported chain IDs not reflected in per_chain breakdown

## How this service works

AI agent spending policy via x402 v2 micropayments on Base Mainnet.

## Output

Returns a JSON object containing the agent's overall trust_score (0–1 float), per-chain scores broken out by network (e.g. base, ethereum), and the number of chains_found where the agent has activity.

## Request schema (JSON Schema)

```json
{
 "type": "object"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "format": null,
 "example": {
  "agent_id": "0xabc123",
  "per_chain": {
   "base": {
    "score": 0.92
   },
   "ethereum": {
    "score": 0.87
   }
  },
  "trust_score": 0.87,
  "chains_found": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-policy-trust-score-api-aa62948a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-seven.vercel.app](https://www.zero.xyz/host/x402-api-seven.vercel.app/llms.txt)
