Skip to main content
GET
/
cabinet
/
admin
/
users
/
by-telegram
/
{telegram_id}
Get User By Telegram
curl --request GET \
  --url http://localhost:8080/cabinet/admin/users/by-telegram/{telegram_id}
{
  "id": 123,
  "full_name": "<string>",
  "status": "<string>",
  "language": "<string>",
  "balance_kopeks": 123,
  "balance_rubles": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "referral": {
    "referral_code": "<string>",
    "referrals_count": 0,
    "total_earnings_kopeks": 0,
    "commission_percent": 123,
    "referred_by_id": 123,
    "referred_by_username": "<string>"
  },
  "telegram_id": 123,
  "username": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "<string>",
  "email_verified": false,
  "updated_at": "2023-11-07T05:31:56Z",
  "last_activity": "2023-11-07T05:31:56Z",
  "cabinet_last_login": "2023-11-07T05:31:56Z",
  "subscription": {
    "id": 123,
    "status": "<string>",
    "is_trial": true,
    "start_date": "2023-11-07T05:31:56Z",
    "end_date": "2023-11-07T05:31:56Z",
    "traffic_limit_gb": 0,
    "traffic_used_gb": 0,
    "device_limit": 1,
    "tariff_id": 123,
    "tariff_name": "<string>",
    "autopay_enabled": false,
    "is_active": false,
    "days_remaining": 0,
    "purchased_traffic_gb": 0,
    "traffic_purchases": []
  },
  "promo_group": {
    "id": 123,
    "name": "<string>",
    "is_default": false
  },
  "total_spent_kopeks": 0,
  "purchase_count": 0,
  "used_promocodes": 0,
  "has_had_paid_subscription": false,
  "lifetime_used_traffic_bytes": 0,
  "restriction_topup": false,
  "restriction_subscription": false,
  "restriction_reason": "<string>",
  "promo_offer_discount_percent": 0,
  "promo_offer_discount_source": "<string>",
  "promo_offer_discount_expires_at": "2023-11-07T05:31:56Z",
  "campaign_name": "<string>",
  "campaign_id": 123,
  "recent_transactions": [],
  "remnawave_uuid": "<string>"
}

Path Parameters

telegram_id
integer
required

Response

Successful Response

Detailed user information.

id
integer
required
full_name
string
required
status
string
required
language
string
required
balance_kopeks
integer
required
balance_rubles
number
required
created_at
string<date-time>
required
referral
UserReferralInfo · object
required

User referral info.

telegram_id
integer | null
username
string | null
first_name
string | null
last_name
string | null
email
string | null
email_verified
boolean
default:false
updated_at
string<date-time> | null
last_activity
string<date-time> | null
cabinet_last_login
string<date-time> | null
subscription
UserSubscriptionInfo · object

User subscription information.

promo_group
UserPromoGroupInfo · object

User promo group info.

total_spent_kopeks
integer
default:0
purchase_count
integer
default:0
used_promocodes
integer
default:0
has_had_paid_subscription
boolean
default:false
lifetime_used_traffic_bytes
integer
default:0
restriction_topup
boolean
default:false
restriction_subscription
boolean
default:false
restriction_reason
string | null
promo_offer_discount_percent
integer
default:0
promo_offer_discount_source
string | null
promo_offer_discount_expires_at
string<date-time> | null
campaign_name
string | null
campaign_id
integer | null
recent_transactions
UserTransactionItem · object[]
remnawave_uuid
string | null