Base URL
All API requests should be made to:Authentication
All API endpoints require authentication using a Bearer token. Include your API key in theAuthorization header:
Get your API key from the Dashboard.
API Endpoints
The Cred Protocol API is organized into the following categories:Score Endpoints
Report Endpoints
Identity Endpoints
Sandbox Endpoints
All production endpoints have sandbox equivalents. See Sandbox Overview for the full list.Request Format
Path Parameters
Some endpoints accept path parameters (e.g.,{address}). These support:
- Ethereum addresses:
0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17 - ENS names:
vitalik.eth
Query Parameters
Query parameters should be URL-encoded and appended to the URL:Response Format
All responses are returned in JSON format:Common Response Fields
Usage Limits
API usage is measured in Cred Units (CUs). Each endpoint consumes a specific number of CUs based on computational complexity.See the Pricing FAQ for details on Cred Units.
429 Too Many Requests response. Upgrade your plan or wait for the next billing cycle to continue making requests.
Cred Unit Costs
Every API request consumes Cred Units based on the complexity of the operation. Simple queries cost less, while comprehensive reports that aggregate data across multiple blockchains cost more.Cost Tiers
What Affects Cost?
- Scope: Single-chain queries cost less than cross-chain aggregations
- Detail Level: Summaries cost less than full reports with balances, NFTs, and transaction history
- Data Enrichment: Reports enhanced with off-chain data require additional processing
Example Usage
Caching
Responses are cached for 5 minutes per address to optimize performance. To force a fresh calculation, wait for the cache to expire or contact support for cache invalidation.Error Handling
See the Error Handling Guide for detailed information on handling API errors.Common Error Codes
SDKs & Libraries
Coming soon:- JavaScript/TypeScript SDK
- Python SDK
- Go SDK