Overview
Computes Cred Protocol credit score, sybil risk, and identity attestations for the given agent, then submits the results as on-chain feedback to the ERC-8004 Reputation Registry on Base.
The submission happens asynchronously — this endpoint returns immediately with a tracking ID. Use the status endpoint to poll for completion.
This endpoint costs 10 Cred Units per submission (covers computation + on-chain gas on Base).
Authentication
| Method | Header | Cost |
|---|
| API Token | Authorization: Bearer YOUR_API_KEY | 10 Cred Units |
| x402 Payment | X-PAYMENT: <signed_payment> | $0.10 USDC |
Path Parameters
ERC-8004 agent ID from the Identity Registry. Must be >= 1.
Request Body
Ethereum address to score for this agent (e.g., 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045)
Which feedback types to submit. Defaults to all three if omitted.Options: creditScore, sybilRisk, identityCount
| Tag | Description | Value Range |
|---|
creditScore | Andromeda 1.0 credit score | 300–1000 |
sybilRisk | Sybil detection risk score | 0 (human) – 100 (bot) |
identityCount | Number of verified identity attestations | 0+ |
Response
Returns HTTP 202 Accepted with a tracking ID.
UUID tracking this submission
Initial status (always pending)
estimated_completion_seconds
Estimated time to on-chain confirmation (typically ~45 seconds)
Relative URL to poll for submission status
Feedback types being submitted
curl -X POST "https://api.credprotocol.com/api/v2/reputation/18" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}'
{
"submission_id": "550e8400-e29b-41d4-a716-446655440000",
"agent_id": 18,
"status": "pending",
"estimated_completion_seconds": 45,
"status_url": "/api/v2/reputation/18/status/550e8400-e29b-41d4-a716-446655440000",
"tags": ["creditScore", "sybilRisk", "identityCount"]
}
Submission Lifecycle
The submission progresses through these statuses:
| Status | Description |
|---|
pending | Submission received, queued for processing |
scoring | Computing credit score, sybil risk, and identity attestations |
uploading | Uploading feedback JSON to IPFS |
submitting | Sending giveFeedback transaction to Base |
confirmed | Transaction confirmed on-chain |
failed | An error occurred (check the error field) |
- Response Time: Immediate (HTTP 202)
- End-to-End Completion: ~45 seconds (scoring + IPFS upload + on-chain confirmation)