# AgentPay Token Safety Check

> AgentPay Token Safety Check is a paid API for AI agents from agentpay.help, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Analyzes a cryptocurrency token for safety, returning a risk score and flags indicating potential dangers or malicious characteristics.

## Facts

- Endpoint: POST https://agentpay.help/v1/token-safety
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentpay-token-safety-check-4c8bc5e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DiJrtYhtzsqPPXP86EBFX

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 agentpay-token-safety-check-4c8bc5e2 -d '<json body>'
```

Example prompt: Before I swap into this token, can you check if it's safe? The contract address is 0x6b175474e89094c44da98b954eedeac495271d0f on Base — I want to see the risk score and any flags.

## When to prefer this

Choose this endpoint when an AI agent needs a fast, pay-per-call token safety assessment without managing API keys or subscriptions. Ideal for DeFi bots, trading agents, or wallet assistants that need to vet tokens on-the-fly before executing swaps or approvals. Prefer this over on-chain static analysis tools when you need a pre-aggregated risk score with human-readable flags in a single call.

## Known failure modes

- Invalid or malformed token address returns an error response
- Token not found on supported chain returns empty or error result
- Network timeout or service unavailability during analysis
- Unsupported blockchain network for the given token address
- Payment failure via x402 protocol results in 402 response with no analysis

## How this service works

Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.

## Output

Returns a JSON object with three fields: 'safe' (boolean indicating whether the token passed safety checks), 'flags' (array of strings describing specific risk factors such as honeypot, rug pull mechanics, blacklist functions, or ownership issues), and 'risk_score' (a numeric score representing overall risk level, likely 0–1 or 0–100).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Chain name or id, default base"
  },
  "address": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$",
   "description": "ERC-20 contract address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "safe": true,
  "flags": [],
  "honeypot": false,
  "risk_score": 8,
  "liquidity_usd": 4120000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentpay-token-safety-check-4c8bc5e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpay.help](https://www.zero.xyz/host/agentpay.help/llms.txt)
