Skip to main content
GET
/
cabinet
/
admin
/
users
List Users
curl --request GET \
  --url http://localhost:8080/cabinet/admin/users
{
  "users": [
    {
      "id": 123,
      "full_name": "<string>",
      "status": "<string>",
      "balance_kopeks": 123,
      "balance_rubles": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "telegram_id": 123,
      "username": "<string>",
      "first_name": "<string>",
      "last_name": "<string>",
      "last_activity": "2023-11-07T05:31:56Z",
      "has_subscription": false,
      "subscription_status": "<string>",
      "subscription_is_trial": false,
      "subscription_end_date": "2023-11-07T05:31:56Z",
      "promo_group_id": 123,
      "promo_group_name": "<string>",
      "total_spent_kopeks": 0,
      "purchase_count": 0,
      "has_restrictions": false,
      "restriction_topup": false,
      "restriction_subscription": false
    }
  ],
  "total": 123,
  "offset": 0,
  "limit": 50
}

Query Parameters

offset
integer
default:0
Required range: x >= 0
limit
integer
default:50
Required range: 1 <= x <= 200
search
string | null
Maximum string length: 255
email
string | null
Maximum string length: 255
status
enum<string> | null

User status enum.

Available options:
active,
blocked,
deleted
sort_by
enum<string>
default:created_at

Sort options for users list.

Available options:
created_at,
balance,
traffic,
last_activity,
total_spent,
purchase_count

Response

Successful Response

Paginated list of users.

users
UserListItem · object[]
required
total
integer
required
offset
integer
default:0
limit
integer
default:50