Skip to main content

GET /api/v1/users/{id}

Returns the public profile of a user by their numeric ID. When the request includes a valid authentication token, additional fields may be included in the response.

Authentication​

Optional. Providing a Bearer token may return extended profile data.

Request​

Path Parameters​

ParameterTypeRequiredDescription
idint64YesThe user's unique ID

Example​

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

Response​

200 OK​

When viewing your own profile (authenticated as user 42):

{
"id": 42,
"name": "Alice",
"nickname": "alice_bet",
"profile_hidden": false,
"email": "alice@example.com",
"referral_code": "XYZ789",
"language": "en",
"theme": "dark",
"level": 0,
"balance": 125050,
"bonus_balance": 0,
"total_balance": 125050,
"avatar_url": "https://cdn.intotes.com/avatars/42.jpg",
"telegram_verified": false,
"is_creator": false,
"is_stats_viewer": false,
"positions": [],
"closed_positions": [],
"closed_positions_has_more": false,
"total_predictions": 12,
"biggest_win": 8500,
"registered_date": "2025-06-15"
}

When viewing another user's public profile, the response omits private fields like email, balance, bonus_balance, referral_code, and wallet addresses.

Response Fields (own profile)​

FieldTypeDescription
idint64User ID
namestringDisplay name
nicknamestringUnique username (nullable)
profile_hiddenboolWhether the user has hidden their profile
emailstringEmail address (own profile only)
referral_codestringReferral code (own profile only)
languagestringPreferred language
themestringUI theme preference
balanceint64Account balance in kopecks (own profile only)
bonus_balanceint64Bonus balance in kopecks (own profile only)
total_balanceint64Total balance in kopecks (own profile only)
avatar_urlstringURL of the user's avatar image
is_creatorboolWhether the user can create events
is_stats_viewerboolWhether the user has admin stats access
positionsarrayOpen positions with details
closed_positionsarrayClosed positions with details
total_predictionsint64Total number of closed positions
biggest_winint64Largest PnL win in kopecks
registered_datestringRegistration date in YYYY-MM-DD format

Errors​

StatusCodeDescription
400invalid_idThe provided ID is not valid
404user_not_foundNo user exists with this ID