# TrustLayer ERC-8004 Agent Profile Lookup

> TrustLayer ERC-8004 Agent Profile 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-16).

Returns the full trust score, component breakdown (profile, feedback, legitimacy), feedback counts, and metadata for any ERC-8004 registered agent by chain:id.

## Facts

- Endpoint: GET https://api.thetrustlayer.xyz/agent/base:1378
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-thetrustlayer-xyz-b6d17f23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fMK_L_Q0Ume_90Z_mso8g

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-b6d17f23
```

Example prompt: Can you look up the TrustLayer trust score and full profile breakdown for the on-chain agent with ID base:1378? I want to see its trust score, profile score, feedback score, legitimacy score, feedback count, and how many unique callers it has.

## When to prefer this

Use this endpoint when you need a quick, low-cost ($0.001) trust score snapshot for a specific ERC-8004 agent by ID. Prefer this over the forensics or time-series endpoints when you only need the current score and basic metadata rather than deep Sybil analysis, historical trajectory, or reviewer-level forensics.

## Known failure modes

- Invalid agentId format (not chain:id) returns 400 error
- Agent not found in ERC-8004 registry returns 404
- Payment not included or insufficient returns 402
- Chain not supported returns error
- Agent has no feedback data — scoreFeedback may be 0 or null
- Stale data if lastSyncedAt is old — score may not reflect recent activity

## How this service works

Agent profile lookup. Returns trust score, component breakdown, feedback counts, and metadata for any ERC-8004 agent.

## Output

Returns a JSON object containing: agent name, chain, agentId, trust score (0-100), component scores (scoreProfile, scoreFeedback, scoreLegitimacy), feedbackCount, uniqueCallers, agent description, and timestamps for when it was last scored and synced.

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

## More

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