# TrustLayer Agent Trust Score

> TrustLayer Agent Trust Score 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-13).

Returns a composite trust score and component breakdown for a specific ERC-8004 agent by chain-qualified agent ID

## Facts

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

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-trust-score-3898e705
```

Example prompt: What's the trust score for Base agent base:1378? I want to know if it's safe to hire before delegating a task to it — give me the full breakdown including profile, feedback, and legitimacy scores.

## When to prefer this

Use this endpoint when you need a quick, single-agent trust score summary with component breakdown before initiating agent-to-agent interactions, hiring an agent, or delegating tasks. Prefer this over the full profile or forensics endpoints when you only need the numeric trust signal and don't need full feedback history, time-series data, or Sybil forensics detail.

## Known failure modes

- Agent ID not found on specified chain — returns 404 or empty result
- Malformed agentId format (missing chain prefix) — returns 400 validation error
- Unsupported chain identifier — returns error indicating chain not indexed
- Payment failure via x402 micropayment — returns 402 Payment Required
- Rate limiting or quota exceeded — returns 429
- Agent exists but has insufficient data for scoring — may return null or zero scores

## 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

A JSON object containing the agent's name, chain-qualified agentId, overall trustScore (0-100), and three component scores: scoreProfile (identity/profile depth), scoreFeedback (quality of received feedback), and scoreLegitimacy (Sybil-resistance and legitimacy signals).

## 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, bsc:1629, ethereum:13446)"
      }
     }
    }
   },
   "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,
  "scoreProfile": 30,
  "scoreFeedback": 65,
  "scoreLegitimacy": 80
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trustlayer-agent-trust-score-3898e705/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)
