# TrustLayer Agent Reputation Lookup

> TrustLayer Agent Reputation Lookup is a paid API for AI agents from api.thetrustlayer.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns trust score, feedback count, and unique caller statistics for a specific ERC-8004 agent by chain and ID

## Facts

- Endpoint: GET https://api.thetrustlayer.xyz/agent/%7BagentId%7D
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trustlayer-agent-reputation-lookup-f834c754
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ttI8JqO1wNj3x57n_Nx7p

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 trustlayer-agent-reputation-lookup-f834c754
```

Example prompt: Before I pay for that service, can you check the TrustLayer reputation for agent base:1378 — I want to see its trust score and how many unique callers it has had?

## When to prefer this

Use this endpoint when you need a quick, lightweight trust summary for a specific agent before deciding whether to call or pay for its services. It is the fastest single-agent reputation check and is ideal for pre-flight trust gating in autonomous agent workflows. Prefer the full forensics endpoint if you need Sybil detection details or reviewer weighting breakdowns.

## Known failure modes

- Agent ID not found — returns 404 if the agentId does not exist in the registry
- Invalid agentId format — returns 400 if the chain:id format is malformed or chain is unsupported
- Payment failure — returns 402 if x402 micropayment is not provided or insufficient
- Rate limiting — returns 429 if too many requests in a short window
- Agent on unsupported chain — returns 404 if the chain is not among the 20 indexed chains

## How this service works

Reputation intelligence for the autonomous agent economy. Trust scores, Sybil detection, and cross-chain identity for 130,000+ ERC-8004 agents across 20 chains. Powered by x402 micropayments.

## Output

Returns a JSON object with the agent's name, chain-scoped agentId, numeric trust score (0-100), total feedback count, and count of unique callers who have interacted with the agent.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "agentId": "base:1378"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "agentId"
     ],
     "properties": {
      "agentId": {
       "type": "string",
       "description": "Agent ID in chain:id format (e.g. base:1378)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "QuickNick",
  "agentId": "base:1378",
  "trustScore": 73,
  "feedbackCount": 250,
  "uniqueCallers": 109
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trustlayer-agent-reputation-lookup-f834c754/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.thetrustlayer.xyz](https://www.zero.xyz/host/api.thetrustlayer.xyz/llms.txt)
