API Integration
Integrate Corepilot's staking optimization service into your application using our RESTful API. Access real-time APY data, intelligent staking recommendations, and historical analytics.
API Documentation
Base URL: https://api.corepilot.finance/corepilot
{
"endpoints": {
"authentication": {
"signIn": "POST /auth/sign-in",
"signUp": "POST /auth/sign-up",
"refreshToken": "POST /auth/refresh-token"
},
"apiKey": {
"create": "POST /api-key/create",
"list": "GET /api-key/list"
},
"apy": {
"getCurrentRound": "GET /apy/current",
"getNextRound": "GET /apy/next-round",
"optimizeDistribution": "POST /apy/optimize-distribution"
},
"history": {
"getAPRStats": "GET /history/apr-statistics",
"getAPRByValidator": "GET /history/apr-statistics/{validatorAddress}"
}
}
}
Authentication
Get your API key from the dashboard and include it in requests using the X-API-Key header:
X-API-Key: YOUR_API_KEY
Rate Limits
Rate limits depend on your subscription plan. Please refer to your subscription details for specific limits.
Endpoints
• APY Information
• Staking Optimization
• Historical Data
• Validator Analytics
Example Usage
Get Current Round APY
curl -X GET "https://api.corepilot.finance/corepilot/apy/current" \
-H "Accept: application/json" \
-H "X-API-Key: YOUR_API_KEY"