get()
Get the current profile
Returns the authenticated account, including contact details and the security state needed by account settings screens.
Signature
client.profile.get(options: ProfileGetOptions = {}): Promise<ProfileGetResponse>Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
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.profile.get();Returns
UserThe operation completed successfully.
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.profile.getWithResponse(options): Promise<ApiResponse<ProfileGetResponse>>Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
client.profile.get(*, accept_language: str | Unset=UNSET) -> Userawait async_client.profile.get(*, accept_language: str | Unset=UNSET) -> UserParameters
| Name | Type | Requirement | Description |
|---|---|---|---|
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.profile.get()Async example
result = await async_client.profile.get()Returns
UserThe operation completed successfully.
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 | NoneThrows
ApiErrorNormalized API, transport, and response processing failure.
ErrorKind.AUTHENTICATIONAuthentication credentials are missing, expired, or invalid.ErrorKind.PERMISSIONThe authenticated account cannot perform this operation.ErrorKind.VALIDATIONThe request arguments or business rules are invalid.ErrorKind.NETWORKThe request could not reach ProxyRequest.ErrorKind.UNEXPECTEDThe response could not be decoded or did not match the SDK contract.
Advanced variants
client.profile.get_with_response(*, accept_language: str | Unset=UNSET) -> ApiResponse[User]Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
$client->profile()->get($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
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->profile()->get();Returns
UserThe operation completed successfully.
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::AuthenticationAuthentication credentials are missing, expired, or invalid.ErrorKind::PermissionThe authenticated account cannot perform this operation.ErrorKind::ValidationThe request arguments or business rules are invalid.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->profile()->getWithResponse($acceptLanguage = null, string $contentType = self::contentTypes['get'][0]): \ProxyRequest\ApiResponseReturns an ApiResponse with decoded data and HTTP metadata.
$client->profile()->getWithHttpInfo($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Returns the OpenAPI Generator response tuple.
$client->profile()->getAsync($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Returns a Guzzle promise for the decoded result.
$client->profile()->getAsyncWithHttpInfo($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Returns a Guzzle promise for the response tuple.
$client->profile()->getRequest($acceptLanguage = null, string $contentType = self::contentTypes['get'][0])Builds the PSR-7 request without sending it.