curl "https://agent-api.fairscale.xyz/v1/credit?wallet=WALLET_ADDRESS&amount=1000" \
-H "fairkey: zpka_your_key_here"
| Param | Required | Notes |
|---|---|---|
wallet | yes | Solana address |
amount | no | Loan USD amount (default 1000) |
nocache | no | 1 to bypass cache |
Response
{
"wallet": "4yhXa4iERFGma3T1HMMjH8nJ8EdFqbahCV5Yomm8Z3do",
"credit_score": 80,
"risk_band": "prime",
"credit_pillars": {
"credit_history": { "score": 89 },
"income_capacity": { "score": 71 }
},
"credit_data": {
"obligations": {
"has_open_debt": true,
"positions": [{
"protocol": "Kamino",
"ltv": 38.88,
"headroom_to_liquidation": 16.12
}]
}
},
"underwriting": {
"lending_terms": {
"suggested_apr_range": { "low": 2, "high": 5 },
"max_credit_line": 1042863
}
},
"attestation": { "verify_url": "https://credit-api.fairscale.xyz/v1/verify-hash?..." }
}
Risk bands
| Band | Score |
|---|---|
prime | 75–100 |
near_prime | 60–74 |
subprime | 45–59 |
deep_subprime | 25–44 |
decline | 0–24 |
Cache: 15 min. Bypass: ?nocache=1.
Explore annotated fields: Credit response explorer.