Skip to main content

🚀 5-Minute Quickstart

Get up and running with Kixago in under 5 minutes.


Step 1: Get Your API Key

  1. Visit https://kixago.com/dashboard
  2. Sign up for a free account
  3. Copy your API key
kixakey_7eBHF9Ndxd_7eBHF9Ndxdq-I3q4Ds4nULLPQd-vElx9KC8fa6NDZiw
warning

Save your API key immediately - it's only shown once.

Never commit API keys to version control!


Step 2: Make Your First Request

Let's get a complete DeFi credit profile for a whale wallet with $2.1B in positions:

curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.kixago.com/v1/risk-profile/0xf0bb20865277aBd641a307eCe5Ee04E79073416C"

Replace YOUR_API_KEY with your actual key.

Response time: 1-5 seconds (first request), <100ms (cached)


Step 3: Understand the Response

You'll get a comprehensive JSON response:

{
"wallet_address": "0xf0bb20865277aBd641a307eCe5Ee04E79073416C",
"total_collateral_usd": 2139957718.47,
"total_borrowed_usd": 1905081695.88,
"global_health_factor": 1.067,
"global_ltv": 89.02,
"positions_at_risk_count": 2,

"defi_score": {
"defi_score": 467,
"risk_level": "High Risk",
"risk_category": "HIGH_RISK",

"risk_factors": [
{
"severity": "critical",
"factor": "Imminent Liquidation Risk",
"description": "Health factor 1.067 means position will be liquidated if collateral value drops 6.7%"
}
],

"recommendations": {
"immediate": [
"🚨 URGENT: Deposit $381M more collateral OR repay debt to raise health factor above 1.5"
]
},

"liquidation_simulation": {
"scenarios": [
{
"event": "Collateral drops 10%",
"new_health_factor": 0.961,
"status": "LIQUIDATED",
"estimated_loss": "~$214M in liquidation penalties"
}
]
}
},

"lending_positions": [
{
"protocol": "Aave",
"protocol_version": "V3",
"chain": "Ethereum",
"collateral_usd": 2077178086.09,
"borrowed_usd": 1853661183.91,
"health_factor": 1.065,
"is_at_risk": true
}
]
}

Key insights:

  • DeFi Score: 467 = High Risk (like a FICO score)
  • Health Factor: 1.067 = Liquidation if collateral drops 6.7%
  • LTV: 89% = Extreme leverage
  • Risk: CRITICAL = Immediate action needed

See complete response structure →


Step 4: Use It in Code

JavaScript/TypeScript

const KIXAGO_API_KEY = process.env.KIXAGO_API_KEY;

async function getRiskProfile(address) {
const response = await fetch(
`https://api.kixago.com/v1/risk-profile/${address}`,
{
headers: { 'X-API-Key': KIXAGO_API_KEY }
}
);

return await response.json();
}

// Usage
const profile = await getRiskProfile('0xf0bb...');
console.log(`DeFi Score: ${profile.defi_score.defi_score}`);
console.log(`Risk Level: ${profile.defi_score.risk_level}`);

More code examples →


What's Included in the Response?

Every API call returns:

SectionWhat You Get
Portfolio SummaryTotal collateral, debt, health factor, LTV
DeFi Credit Score300-850 FICO-style score with risk level
Risk FactorsSpecific issues (liquidation risk, leverage, etc.)
RecommendationsImmediate, short-term, long-term actions
Liquidation ScenariosWhat-if price drop simulations
Individual PositionsPer-protocol breakdown (Aave, Compound, MakerDAO)
Token DetailsCollateral and debt token-by-token

Complete field documentation →


Score Ranges (300-850)

ScoreRisk LevelMeaning
750-850Very Low Risk🟢 Healthy positions
650-749Low Risk🔵 Conservative
550-649Medium Risk🟡 Moderate leverage
450-549High Risk🟠 Danger zone
300-449Very High Risk🔴 Critical

How scoring works →


Supported Protocols

ProtocolVersionsChains
AaveV2, V3Ethereum, Base, Arbitrum, Polygon
CompoundV2, V3Ethereum, Base, Arbitrum, Polygon
MakerDAOVaultsEthereum

Authentication

Include your API key in the X-API-Key header:

curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.kixago.com/v1/risk-profile/0x..."

See all authentication methods →


Common Issues

❌ "missing or invalid API key"

Fix: Include the X-API-Key header in your request.

❌ "invalid address format"

Fix: Address must be 42 characters (0x + 40 hex) or a valid ENS name.

⚠️ Empty lending_positions

This is normal - the wallet has no DeFi positions.

Full error handling guide →


Next Steps


Need Help?


You're ready to build! 🚀


---