list()
List users in the current account
Returns users visible to the caller. Resellers see their sub-users, regular customers see only themselves, and administrators can see all users.
Signature
client.users.list(options: UsersListOptions = {}): Promise<UsersListResponse>Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
email | string | Optional | — |
id | string | Optional | — |
limit | number | Optional | Number of results to return per page. |
offset | number | Optional | The initial index from which to return the results. |
ordering | string | Optional | Which field to use when ordering the results. |
packageId | string | Optional | Filters the visible user list to accounts that have at least one stored order for this package UUID. Orders are matched regardless of whether they are active or expired; this filter never expands the caller's normal account scope. |
search | string | Optional | Case-insensitive partial search across user fields: `email`, `username`, `first_name`, and `last_name`. Separate multiple terms with spaces or commas; every term must match at least one listed field. |
username | string | Optional | — |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
const result = await client.users.list();Returns
PaginatedUserListThe operation completed successfully.
typePaginatedUserList4fields
countnumbernextstringpreviousstringresultsUser[]typeUser43fields
Customer account with contact details, security settings, package data, referral information, and managed sub-users visible to the caller.
idstringusernamestringemailstringis_resellerbooleanis_marketerbooleanis_superuserbooleandate_joinedstringdate_joined_tsnumberfirst_namestringlast_namestringbalancenumberlanguageLanguageEnumenumLanguageEnum0fields
* `en` - EN * `de` - DE * `fr` - FR * `it` - IT * `ru` - RU
No fields.
countrystringstatestringcitystringaddressstringzipstringcompany_namestringcompany_addressstringcompany_citystringcompany_postal_codestringcompany_countrystringcompany_vat_numberstringallowed_ipsstring[]blocked_domainsstring[]connection_limitnumberparent_idstringsub_usersnumberreferralsnumberreferral_idstringreferral_codestringreferral_data_earnednumberreferral_data_pendingnumberreferral_balance_pendingnumberreferral_balance_earnednumbercurrencyUserCurrencytypeUserCurrency2fields
codestringsymbolstringcouponsCouponShort[]typeCouponShort14fields
idstringis_expiredbooleanis_redeemedbooleanpackagesPackageShort[]typePackageShort5fields
idstringnamestringaliasstringis_unlimited_databooleantargeting_optionsTargetingOptionstypeTargetingOptions25fields
packagestringsplit_charstringvalue_charstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocation_formatstringsessionstringsession_mode_tagstringsession_ttlstringsession_ttl_formatnumberosstringos_combinedbooleanos_split_charstringos_linuxstringos_windowsstringos_iosstringos_macosstringos_androidstringcreatedstringvaluenumbercodestringis_multi_usebooleanis_available_to_one_timebooleantypeCouponTypeEnumenumCouponTypeEnum0fields
* `free_data` - Free Data * `monetary` - Money * `percentage` - Percentage
No fields.
limitnumbervalid_untilstringmarketerstringuserstringdatanumberdata_spentnumberdata_updatedstringproxy_passwordstringproxy_password_resetstringordersOrder[]typeOrder17fields
idstringis_auto_renewalbooleanauto_renewal_percentagenumberauto_renewal_datanumberpackagePackageShorttypePackageShort5fields
idstringnamestringaliasstringis_unlimited_databooleantargeting_optionsTargetingOptionstypeTargetingOptions25fields
packagestringsplit_charstringvalue_charstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocation_formatstringsessionstringsession_mode_tagstringsession_ttlstringsession_ttl_formatnumberosstringos_combinedbooleanos_split_charstringos_linuxstringos_windowsstringos_iosstringos_macosstringos_androidstringproxy_passwordstringproxy_password_resetstringpoolsstring[]datanumberdata_remainingnumberdata_spentnumberledgersDataLedger[]typeDataLedger6fields
A purchased data bucket, not a complete transaction history. Finite purchases with an expiration have separate buckets. Compatible non-expiring top-ups and unlimited packages may reuse an existing bucket.
idstringdatanumberdata_remainingnumberexpiresstringupdatedstringcreatedstringlatest_data_top_upnumberlatest_data_top_up_datestringdata_updatedstringupdatedstringcreatedstringThrows
ApiErrorNormalized API, transport, and response processing failure.
kind: "validation"The request arguments or business rules are invalid.kind: "authentication"Authentication credentials are missing, expired, or invalid.kind: "permission"The authenticated account cannot perform this operation.kind: "network"The request could not reach ProxyRequest.kind: "unexpected"The response could not be decoded or did not match the SDK contract.
Advanced variants
client.users.listWithResponse(options): Promise<ApiResponse<UsersListResponse>>Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
client.users.list(*, email: str | Unset=UNSET, id: UUID | Unset=UNSET, limit: int | Unset=UNSET, offset: int | Unset=UNSET, ordering: str | Unset=UNSET, package_id: UUID | Unset=UNSET, search: str | Unset=UNSET, username: str | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedUserListawait async_client.users.list(*, email: str | Unset=UNSET, id: UUID | Unset=UNSET, limit: int | Unset=UNSET, offset: int | Unset=UNSET, ordering: str | Unset=UNSET, package_id: UUID | Unset=UNSET, search: str | Unset=UNSET, username: str | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedUserListParameters
| Name | Type | Requirement | Description |
|---|---|---|---|
email | str | Optional | — |
id | str | Optional | — |
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
ordering | str | Optional | Which field to use when ordering the results. |
package_id | str | Optional | Filters the visible user list to accounts that have at least one stored order for this package UUID. Orders are matched regardless of whether they are active or expired; this filter never expands the caller's normal account scope. |
search | str | Optional | Case-insensitive partial search across user fields: `email`, `username`, `first_name`, and `last_name`. Separate multiple terms with spaces or commas; every term must match at least one listed field. |
username | str | Optional | — |
accept_language | str | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
result = client.users.list()Async example
result = await async_client.users.list()Returns
PaginatedUserListThe operation completed successfully.
classPaginatedUserList4fields
countintresultslist[User]classUser43fields
Customer account with contact details, security settings, package data, referral information, and managed sub-users visible to the caller.
idUUIDusernamestremailstrdate_joineddatetime.datetimedate_joined_tsintallowed_ipslist[str]blocked_domainslist[str]parent_idstrsub_usersintreferralsintreferral_codestrreferral_data_earnedintreferral_data_pendingintreferral_balance_pendingintreferral_balance_earnedintcurrencyUserCurrencyclassUserCurrency2fields
codestrsymbolstrcouponslist[CouponShort]classCouponShort14fields
is_expiredboolis_redeemedboolpackageslist[PackageShort]classPackageShort5fields
namestraliasstrtargeting_optionsTargetingOptionsclassTargetingOptions25fields
packagestrsplit_charstrvalue_charstrcontinentstrcountrystrregionstrcitystrasnstrispstrusernamestrpoolstrlocationstrlocation_formatstrsessionstrsession_mode_tagstrsession_ttlstrsession_ttl_formatintosstros_combinedboolos_split_charstros_linuxstros_windowsstros_iosstros_macosstros_androidstridstris_unlimited_databoolcreateddatetime.datetimevalueintcodestrtype_CouponTypeEnumenumCouponTypeEnum0fields
No fields.
userNone | UUIDidstris_multi_useboolis_available_to_one_timeboollimitintvalid_untildatetime.datetime | NonemarketerNone | UUIDis_resellerboolis_marketerboolis_superuserboolfirst_namestrlast_namestrbalanceintlanguageLanguageEnumenumLanguageEnum0fields
No fields.
countrystrstatestrcitystraddressstrzip_strcompany_namestrcompany_addressstrcompany_citystrcompany_postal_codestrcompany_countrystrcompany_vat_numberstrconnection_limitintreferral_idstrdataint | Nonedata_spentint | Nonedata_updateddatetime.datetime | Noneproxy_passwordNone | strproxy_password_resetdatetime.datetime | Noneorderslist[Order]classOrder17fields
is_auto_renewalboolpackagePackageShortclassPackageShort5fields
namestraliasstrtargeting_optionsTargetingOptionsclassTargetingOptions25fields
packagestrsplit_charstrvalue_charstrcontinentstrcountrystrregionstrcitystrasnstrispstrusernamestrpoolstrlocationstrlocation_formatstrsessionstrsession_mode_tagstrsession_ttlstrsession_ttl_formatintosstros_combinedboolos_split_charstros_linuxstros_windowsstros_iosstros_macosstros_androidstridstris_unlimited_databooldata_remainingintledgerslist[DataLedger]classDataLedger6fields
A purchased data bucket, not a complete transaction history. Finite purchases with an expiration have separate buckets. Compatible non-expiring top-ups and unlimited packages may reuse an existing bucket.
idstrdataintdata_remainingintexpiresdatetime.datetime | Noneupdateddatetime.datetimecreateddatetime.datetimedata_updateddatetime.datetimeupdateddatetime.datetimecreateddatetime.datetimeidstrauto_renewal_percentageintauto_renewal_dataintproxy_passwordstrproxy_password_resetdatetime.datetime | Nonepoolslist[str]dataintdata_spentintlatest_data_top_upintlatest_data_top_up_datedatetime.datetime | Nonenext_None | strpreviousNone | strThrows
ApiErrorNormalized API, transport, and response processing failure.
ErrorKind.VALIDATIONThe request arguments or business rules are invalid.ErrorKind.AUTHENTICATIONAuthentication credentials are missing, expired, or invalid.ErrorKind.PERMISSIONThe authenticated account cannot perform this operation.ErrorKind.NETWORKThe request could not reach ProxyRequest.ErrorKind.UNEXPECTEDThe response could not be decoded or did not match the SDK contract.
Advanced variants
client.users.list_with_response(*, email: str | Unset=UNSET, id: UUID | Unset=UNSET, limit: int | Unset=UNSET, offset: int | Unset=UNSET, ordering: str | Unset=UNSET, package_id: UUID | Unset=UNSET, search: str | Unset=UNSET, username: str | Unset=UNSET, accept_language: str | Unset=UNSET) -> ApiResponse[PaginatedUserList]Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
$client->users()->list($email = null, $id = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $username = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
email | string | Optional | — |
id | string | Optional | — |
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
ordering | string | Optional | Which field to use when ordering the results. |
packageId | string | Optional | Filters the visible user list to accounts that have at least one stored order for this package UUID. Orders are matched regardless of whether they are active or expired; this filter never expands the caller's normal account scope. |
search | string | Optional | Case-insensitive partial search across user fields: `email`, `username`, `first_name`, and `last_name`. Separate multiple terms with spaces or commas; every term must match at least one listed field. |
username | string | Optional | — |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
$result = $client->users()->list();Returns
PaginatedUserListThe operation completed successfully.
classPaginatedUserList4fields
countintnextstringpreviousstringresults[User[]](User.md)classUser43fields
Customer account with contact details, security settings, package data, referral information, and managed sub-users visible to the caller.
idstringusernamestringemailstringisResellerboolisMarketerboolisSuperuserbooldateJoinedDateTimedateJoinedTsintfirstNamestringlastNamestringbalanceintlanguageLanguageEnumenumLanguageEnum0fields
* `en` - EN * `de` - DE * `fr` - FR * `it` - IT * `ru` - RU
No fields.
countrystringstatestringcitystringaddressstringzipstringcompanyNamestringcompanyAddressstringcompanyCitystringcompanyPostalCodestringcompanyCountrystringcompanyVatNumberstringallowedIpsarray<string>blockedDomainsarray<string>connectionLimitintparentIdstringsubUsersintreferralsintreferralIdstringreferralCodestringreferralDataEarnedintreferralDataPendingintreferralBalancePendingintreferralBalanceEarnedintcurrencyUserCurrencyclassUserCurrency2fields
codestringsymbolstringcoupons[CouponShort[]](CouponShort.md)classCouponShort14fields
idstringisExpiredboolisRedeemedboolpackages[PackageShort[]](PackageShort.md)classPackageShort5fields
idstringnamestringaliasstringisUnlimitedDatabooltargetingOptionsTargetingOptionsclassTargetingOptions25fields
packagestringsplitCharstringvalueCharstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocationFormatstringsessionstringsessionModeTagstringsessionTtlstringsessionTtlFormatintosstringosCombinedboolosSplitCharstringosLinuxstringosWindowsstringosIosstringosMacosstringosAndroidstringcreatedDateTimevalueintcodestringisMultiUseboolisAvailableToOneTimebooltypeCouponTypeEnumenumCouponTypeEnum0fields
* `free_data` - Free Data * `monetary` - Money * `percentage` - Percentage
No fields.
limitintvalidUntilDateTimemarketerstringuserstringdataintdataSpentintdataUpdatedDateTimeproxyPasswordstringproxyPasswordResetDateTimeorders[Order[]](Order.md)classOrder17fields
idstringisAutoRenewalboolautoRenewalPercentageintautoRenewalDataintpackagePackageShortclassPackageShort5fields
idstringnamestringaliasstringisUnlimitedDatabooltargetingOptionsTargetingOptionsclassTargetingOptions25fields
packagestringsplitCharstringvalueCharstringcontinentstringcountrystringregionstringcitystringasnstringispstringusernamestringpoolstringlocationstringlocationFormatstringsessionstringsessionModeTagstringsessionTtlstringsessionTtlFormatintosstringosCombinedboolosSplitCharstringosLinuxstringosWindowsstringosIosstringosMacosstringosAndroidstringproxyPasswordstringproxyPasswordResetDateTimepoolsarray<string>dataintdataRemainingintdataSpentintledgers[DataLedger[]](DataLedger.md)classDataLedger6fields
A purchased data bucket, not a complete transaction history. Finite purchases with an expiration have separate buckets. Compatible non-expiring top-ups and unlimited packages may reuse an existing bucket.
idstringdataintdataRemainingintexpiresDateTimeupdatedDateTimecreatedDateTimelatestDataTopUpintlatestDataTopUpDateDateTimedataUpdatedDateTimeupdatedDateTimecreatedDateTimeThrows
ApiExceptionNormalized API, transport, and response processing failure.
ErrorKind::ValidationThe request arguments or business rules are invalid.ErrorKind::AuthenticationAuthentication credentials are missing, expired, or invalid.ErrorKind::PermissionThe authenticated account cannot perform this operation.ErrorKind::NetworkThe request could not reach ProxyRequest.ErrorKind::UnexpectedThe response could not be decoded or did not match the SDK contract.
InvalidArgumentExceptionA required argument is missing or violates a local SDK constraint.
local validationThe request was rejected before it was sent.
Advanced variants
$client->users()->listWithResponse($email = null, $id = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $username = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0]): \ProxyRequest\ApiResponseReturns an ApiResponse with decoded data and HTTP metadata.
$client->users()->listWithHttpInfo($email = null, $id = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $username = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns the OpenAPI Generator response tuple.
$client->users()->listAsync($email = null, $id = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $username = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the decoded result.
$client->users()->listAsyncWithHttpInfo($email = null, $id = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $username = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the response tuple.
$client->users()->listRequest($email = null, $id = null, $limit = null, $offset = null, $ordering = null, $packageId = null, $search = null, $username = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Builds the PSR-7 request without sending it.