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
| Endpoint | Method | Description |
|---|---|---|
/api/v2/score/{address} | GET | Get credit score for a single address |
/api/v2/score/batch | GET | Get credit scores for multiple addresses |
/api/v2/score/boosted/{address} | GET | Get boosted score with off-chain data |
Report Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/v2/report/{address} | GET | Get comprehensive credit report |
/api/v2/report/{address}/{chain_id} | GET | Get chain-specific report |
Identity Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/v2/identity/{address} | GET | Get identity attestations |
Sandbox Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/v2/sandbox/score/{address} | GET | Get mock credit score |
/api/v2/sandbox/report/{address} | GET | Get mock credit report |
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
| Field | Type | Description |
|---|---|---|
address | string | The resolved Ethereum address |
cached | boolean | Whether the response was served from cache |
timestamp | string | ISO 8601 timestamp of the response |
Rate Limiting
API requests are rate-limited based on your plan:| Plan | Requests/Month | Rate Limit |
|---|---|---|
| Free | 1,000 | 10 req/min |
| Growth | 50,000 | 100 req/min |
| Pro | Unlimited | 1,000 req/min |
429 Too Many Requests response.
Caching
Responses are cached for 5 minutes per address to optimize performance. Thecached field in responses indicates whether the data was served from cache.
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
| Code | Description |
|---|---|
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Address not found or invalid |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
SDKs & Libraries
Coming soon:- JavaScript/TypeScript SDK
- Python SDK
- Go SDK