API Reference
Complete reference for the Sprout B2B Partner API.
Base URL
https://api.sproutfi.xyzAuthentication
All endpoints require authentication via API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYResponse Format
All API responses follow this format:
{
"code": 0,
"msg": "success",
"data": { ... }
}Available Endpoints
GET /api/1/b2b/balance
Get your current balance, yield, and fee information
GET /api/1/b2b/transactions
Retrieve your transaction history
GET /api/1/b2b/wallet
Get your deposit wallet address
POST /api/1/b2b/withdraw
Request a withdrawal
Rate Limits
| Limit | Value |
|---|---|
| Requests per minute | 100 |
| Requests per hour | 1,000 |
Need higher rate limits? Contact your Sprout representative.
Error Handling
Error responses include a descriptive message:
{
"code": 400,
"msg": "insufficient withdrawable balance",
"data": null
}Common Error Codes
| Code | Description |
|---|---|
400 | Bad request - check your parameters |
401 | Unauthorized - invalid API key |
404 | Not found - resource doesn't exist |
429 | Rate limited - slow down requests |
500 | Server error - contact support |