B2B Partner API

API Reference

Complete reference for the Sprout B2B Partner API.

Base URL

https://api.sproutfi.xyz

Authentication

All endpoints require authentication via API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Response Format

All API responses follow this format:

{
  "code": 0,
  "msg": "success",
  "data": { ... }
}

Available Endpoints

Rate Limits

LimitValue
Requests per minute100
Requests per hour1,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

CodeDescription
400Bad request - check your parameters
401Unauthorized - invalid API key
404Not found - resource doesn't exist
429Rate limited - slow down requests
500Server error - contact support