Skip to main content
GET
https://api.credprotocol.com
/
api
/
v2
/
reputation
/
{agent_id}
/
summary
curl -X GET "https://api.credprotocol.com/api/v2/reputation/18/summary" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "agent_id": 18,
  "summaries": [
    {
      "tag1": "creditScore",
      "tag2": "credprotocol",
      "count": 5,
      "summary_value": 745.0,
      "summary_value_decimals": 0
    },
    {
      "tag1": "sybilRisk",
      "tag2": "credprotocol",
      "count": 5,
      "summary_value": 15.0,
      "summary_value_decimals": 0
    },
    {
      "tag1": "identityCount",
      "tag2": "credprotocol",
      "count": 5,
      "summary_value": 3.0,
      "summary_value_decimals": 0
    }
  ]
}

Overview

Reads the aggregated feedback summary from the ERC-8004 Reputation Registry on Base. Returns the count and average of all Cred Protocol feedback entries for the specified agent, broken down by tag.
This is a view call (no gas cost) that reads directly from the on-chain Reputation Registry.

Authentication

MethodHeaderCost
API TokenAuthorization: Bearer YOUR_API_KEY1 Cred Unit
x402 PaymentX-PAYMENT: <signed_payment>$0.01 USDC

Path Parameters

agent_id
integer
required
ERC-8004 agent ID. Must be >= 1.

Response

agent_id
integer
The ERC-8004 agent ID
summaries
array
Summary per feedback tag (only includes tags with at least one entry)
summaries[].tag1
string
Feedback metric type (e.g., creditScore, sybilRisk, identityCount)
summaries[].tag2
string
Provider identifier (always credprotocol for Cred submissions)
summaries[].count
integer
Number of feedback entries for this tag
summaries[].summary_value
number
Aggregated value (sum or average depending on the contract implementation)
summaries[].summary_value_decimals
integer
Decimal places for the summary value
curl -X GET "https://api.credprotocol.com/api/v2/reputation/18/summary" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "agent_id": 18,
  "summaries": [
    {
      "tag1": "creditScore",
      "tag2": "credprotocol",
      "count": 5,
      "summary_value": 745.0,
      "summary_value_decimals": 0
    },
    {
      "tag1": "sybilRisk",
      "tag2": "credprotocol",
      "count": 5,
      "summary_value": 15.0,
      "summary_value_decimals": 0
    },
    {
      "tag1": "identityCount",
      "tag2": "credprotocol",
      "count": 5,
      "summary_value": 3.0,
      "summary_value_decimals": 0
    }
  ]
}

Performance

  • Response Time: Typically 1-3 seconds (multiple on-chain view calls)
  • Data Source: On-chain getSummary() calls to the Reputation Registry on Base (chain 8453)