Skip to main content

GET /api/v1/auth/me

Return the full profile of the currently authenticated user, including balance, open and closed positions, crypto wallet addresses, and referral information.

Authentication

Required

Request

No request body or query parameters.

Example

curl -X GET https://intotes.com/api/v1/auth/me \
-H "Authorization: Bearer <access_token>"

Response

200 OK

{
"user": {
"id": 42,
"name": "John",
"nickname": "john_doe",
"email": "user@example.com",
"referral_code": "XYZ789",
"language": "en",
"theme": "dark",
"balance": 50000,
"bonus_balance": 1000,
"total_balance": 51000,
"tron_address": "TXyz1234567890abcdefghijk",
"bsc_address": "0x1234567890abcdef1234567890abcdef12345678",
"polygon_address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd",
"ethereum_address": "0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
"avatar_url": "https://cdn.intotes.com/avatars/42.jpg",
"telegram_verified": false,
"is_creator": false,
"is_stats_viewer": false,
"positions": [
{
"id": 501,
"user_id": 42,
"market_id": 100,
"token_type": "YES",
"amount": 1500,
"avg_price": 6500,
"use_bonus": false,
"created_at": "2026-03-10T10:00:00Z",
"event_id": 10,
"event_name": "Will ETH exceed $4000?",
"pool_id": 5,
"pool_name": "Main Pool",
"market_name": "ETH > $4000",
"side": "YES",
"side_ru": "ДА",
"unrealized_pnl": 320
}
],
"closed_positions": [
{
"id": 401,
"user_id": 42,
"market_id": 50,
"token_type": "NO",
"amount": 2000,
"avg_price": 3000,
"use_bonus": false,
"pnl": 1400,
"won_side": 1,
"closed_at": "2026-03-05T18:00:00Z",
"event_id": 8,
"event_name": "BTC > $100K?",
"pool_id": 3,
"pool_name": "Crypto",
"market_name": "BTC > $100K",
"side": "NO",
"side_ru": "НЕТ"
}
],
"closed_positions_has_more": false,
"total_predictions": 12,
"biggest_win": 8500,
"registered_date": "2026-01-15",
"level": 0
}
}

Response fields

FieldTypeDescription
idint64Unique user identifier
namestringDisplay name
nicknamestringUnique username (nullable)
profile_hiddenbooleanWhether the profile is hidden from other users
emailstringEmail address
referral_codestringUser's referral code for sharing
languagestringPreferred language ("en" or "ru")
themestringUI theme preference
levelintegerUser level
balanceint64Account balance in kopecks
bonus_balanceint64Bonus balance in kopecks
total_balanceint64Sum of balance and bonus balance
tron_addressstringTRON wallet address for deposits
bsc_addressstringBSC wallet address for deposits
polygon_addressstringPolygon wallet address for deposits
ethereum_addressstringEthereum wallet address for deposits
avatar_urlstringURL to user's avatar image (nullable)
telegram_verifiedbooleanWhether Telegram account is linked
is_creatorbooleanWhether the user can create events
is_stats_viewerbooleanWhether the user has access to admin stats
positionsarrayCurrently open positions (PositionWithDetails)
closed_positionsarraySettled positions (ClosedPositionWithDetails)
closed_positions_has_morebooleanWhether more closed positions exist
total_predictionsint64Total number of closed positions
biggest_winint64Largest single PnL win in kopecks
registered_datestringRegistration date in YYYY-MM-DD format

Errors

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid access token