Skip to main content

GET /api/v1/users/me/referral/info

Returns referral program information for the currently authenticated user, including their referral code, who referred them, total earnings, and per-level statistics.

Authentication​

Required. Bearer token must be included in the Authorization header.

Request​

No request body or query parameters required.

Example​

curl -X GET https://intotes.com/api/v1/users/me/referral/info \
-H "Authorization: Bearer <token>"

Response​

200 OK​

{
"referral_code": "ABC123XY",
"referrer": {
"name": "Bob",
"image_url": "https://cdn.intotes.com/avatars/10.jpg"
},
"total_earnings": 34250,
"total_referrals": 25,
"total_volume": 15600000,
"total_deposits": 4800000,
"stats": {
"level1": {
"count": 10,
"total_volume": 9500000,
"earnings": 28500,
"fee": 0.15
},
"level2": {
"count": 9,
"total_volume": 4200000,
"earnings": 4620,
"fee": 0.04
},
"level3": {
"count": 6,
"total_volume": 1900000,
"earnings": 1130,
"fee": 0.01
}
}
}

Response Fields​

FieldTypeDescription
referral_codestringThe user's unique referral code to share
referrerobjectThe user who referred the current user (or null)
referrer.namestringReferrer's display name
referrer.image_urlstringReferrer's avatar URL
total_earningsint64Total earnings from the referral program in kopecks
total_referralsint64Total number of referred users across all levels
total_volumeint64Combined trading volume of all referrals in kopecks
total_depositsint64Combined deposit amount of all referrals in kopecks
statsobjectBreakdown of referral stats by level
stats.level1objectLevel 1 (direct referrals) statistics
stats.level1.countint64Number of level 1 referrals
stats.level1.total_volumeint64Total trading volume of level 1 referrals in kopecks
stats.level1.earningsint64Earnings from level 1 referrals in kopecks
stats.level1.feefloat64Commission rate for level 1 (15%)
stats.level2objectLevel 2 statistics (same structure as level 1)
stats.level2.feefloat64Commission rate for level 2 (4%)
stats.level3objectLevel 3 statistics (same structure as level 1)
stats.level3.feefloat64Commission rate for level 3 (1%)

Errors​

StatusCodeDescription
401unauthorizedMissing or invalid authentication token