# TrustLayer Base Agent Trust Score (ERC-8004)

> TrustLayer Base Agent Trust Score (ERC-8004) 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 a 0–100 ERC-8004 trust score with component breakdown and metadata for a given on-chain agent ID on Base or other supported chains.

## Facts

- Endpoint: GET https://api.thetrustlayer.xyz/score/base:1378
- 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/api-thetrustlayer-xyz-27e8734f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F-w3N9ETYLRhRnJjXihtO

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 api-thetrustlayer-xyz-27e8734f
```

Example prompt: What's the TrustLayer trust score for the on-chain agent base:1378 — give me the full component breakdown too.

## When to prefer this

Use this endpoint when you need a fast, lightweight trust score and basic metadata for a single on-chain agent and do not need full Sybil forensics or historical time-series data. It is ideal for pre-interaction checks, ranking agents, or displaying a trust badge. For deep Sybil detection, reviewer reputation weighting, or cross-chain identity resolution, prefer the /trust/ forensics endpoint instead.

## Known failure modes

- Invalid or malformed agent ID format (not chain:id) returns a 400 error
- Agent ID not found in any indexed ERC-8004 registry returns a 404
- Payment not provided or insufficient USDC results in 402 Payment Required
- Unsupported chain prefix returns a validation error
- Registry data temporarily unavailable returns a 503

## How this service works

Returns an ERC-8004-style trust score and metadata for a Base agent. Includes the agent ID, name, chain, component scores, and sync timestamps for the scored agent.

## Output

Returns a JSON object containing a 0–100 trust score, a detailed component breakdown showing sub-scores (e.g. feedback quality, reviewer reputation, activity), and agent metadata such as chain, registry address, and identity fields from the ERC-8004 standard.

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-thetrustlayer-xyz-27e8734f/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)
