DocumentationapiAPI Overview

API Overview

The CredDAO REST API provides endpoints for querying governance data, member profiles, proposals, and analytics.

Base URL

Development: http://localhost:3001
Production: https://api.creddao.io

Authentication

Most endpoints are public. Member-specific operations may require wallet signature verification.

Rate Limits

TierRequests/min
Anonymous60
Authenticated300

Response Format

All responses are JSON:

interface ApiResponse<T> {
  data: T;
  success: boolean;
  error?: string;
}

Endpoints Overview

EndpointDescription
/healthAPI health check
/api/membersMember operations
/api/proposalsProposal operations
/api/delegationsDelegation operations
/api/analyticsGovernance analytics
/api/fairscoreScore queries
/api/adminAdmin panel (auth required)
/api/docsSwagger documentation

Error Handling

interface ApiError {
  error: string;
  message: string;
  code: string;
}

HTTP Status Codes

CodeMeaning
200Success
400Bad Request
401Unauthorized
404Not Found
429Rate Limited
500Server Error

Quick Example

# Health check
curl https://api.creddao.io/health
 
# Get proposals
curl https://api.creddao.io/api/proposals
 
# Get member profile
curl https://api.creddao.io/api/members/{walletAddress}