/
v3.0.11Get access

getLoginEncrypted

Authenticates the user using encrypted credentials. During login request if `encrypted_token` is set to true, the backend generates a JWE (JSON Web Encryption) token, which is returned in the response and can later be used for authentication. In this case in consumer application can be uses getLoginEncrypted passing JWE token keeping user authenticated

Request parameters:

Name
DescriptionTypeValuesDefaultSource
jweToken
User's encrypted JWE tokenstring--
Methodlogin
Key from responsejwe_token
authToken
User's authentication tokenstring--
Methodlogin
Key from responseauth_token
This method is usually used with these methods:

Call example:

getLoginEncrypted({
  authToken: 'DDD53B548E810432BF290755D3B72A16',
  jweToken: 'eyJhbGciOiJBMjU2S1ciLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIn0.TnhoqRFVnXdJACy0gIB9uz_3oFn7tbqLtTJN89pT-Vn77yNKYlYVYionRFknd779ENoC_gsr4JAWwC2InDKTKRSGP-vPqTvQ.z5d86qaeE_K6vvF6oau0ZQ.UdT1OFvdhs52Cz3cEB_roYBE8aDckUdlQbxilu7oID1wcGlKcdWxEivZnrd3MDFR5DD_ckJ0cDcXNk0Y66QHKHiQq7HaqQBJ-QoaWI3zSIfWT5sRNwU8rqwgd6y0fv4nJuTGtYBmGvzo4_h93K1oYoxcN-93wuXOp_2na3ExDR5vNg4PIqDb__R7iR4TTVzW.zwgfrioJCb4590c9Fc_0MtNv6MwejU2FDqvAGbgrbXk'
})

Response examples:

{
  code: 0,
  rid: 624070344,
  data: {
    subid: '-6081971476452034901',
    data: {
      profile: {
        '1529861660': {
          id: 1529861660,
          _parent_id: null,
          unique_id: 1529861660,
          username: 'test434',
          name: 'Alik Harutyunyan asdfghjkl',
          first_name: 'Alik Harutyunyan',
          last_name: 'asdfghjkl',
          middle_name: null,
          gender: 'M',
          email: '[email protected]',
          phone: '374123455',
          reg_info_incomplete: false,
          address: 'asdfghnnnnnnnn',
          reg_date: '2023-07-07',
          birth_date: '2001-03-01',
          doc_number: 'wertyui',
          casino_promo: null,
          currency: 'TUS',
          currency_id: 'TUS',
          currency_name: 'USDT',
          balance: 47.28,
          casino_balance: null,
          exclude_date: null,
          bonus_id: -1,
          games: 0,
          _level: 'profile',
          super_bet: null,
          country_code: 'BS',
          doc_issued_by: null,
          doc_issue_date: null,
          doc_issue_code: null,
          province: null,
          iban: null,
          active_step: 1,
          active_step_state: 4,
          subscribed_to_news: false,
          bonus_balance: 0,
          frozen_balance: 0,
          bonus_win_balance: 0,
          city: 'Nassau23234',
          has_free_bets: false,
          loyalty_point: 63.02,
          loyalty_earned_points: 0,
          loyalty_exchanged_points: 0,
          loyalty_level_id: 3270,
          affiliate_id: null,
          is_verified: true,
          incorrect_fields: null,
          loyalty_point_usage_period: 0,
          loyalty_min_exchange_point: 0,
          loyalty_max_exchange_point: 0,
          active_time_in_casino: 0,
          last_read_message: null,
          unread_count: 0,
          last_login_date: 1774259116,
          swift_code: null,
          counter_offer_min_amount: 20,
          sportsbook_profile_id: 10,
          subscribe_to_email: true,
          subscribe_to_sms: true,
          subscribe_to_bonus: true,
          is_tax_applicable: false,
          nem_id_token: null,
          mobile_phone: null,
          personal_id: null,
          zip_code: null,
          additional_address: null,
          btag: null,
          birth_region: null,
          supported_currencies: null,
          wallets: null,
          previous_login_time: null,
          nick_name: null,
          is_super_bet_available: true,
          is_gdpr_passed: false,
          subscribe_to_internal_message: true,
          subscribe_to_push_notification: true,
          subscribe_to_phone_call: true,
          title: null,
          terms_and_conditions_version: '1',
          terms_and_conditions_acceptance_date: '2024-07-23',
          last_preferred_currency: null,
          is_agent: false,
          is_two_factor_authentication_enabled: false,
          authentication_status: 0,
          qr_code_origin: null,
          session_duration: null,
          is_new_client: null,
          unplayed_balance: 0,
          language: 'ru',
          exclude_type: null,
          is_bonus_allowed: true,
          casino_bonus: 0,
          casino_bonus_win: 0,
          birth_city: null,
          client_pep_status: null,
          cashdesk_id: null,
          last_sport_bet_time: 1773667063,
          sport_bonus: 0,
          is_phone_verified: false,
          is_mobile_phone_verified: false,
          limit_check_state: null,
          deposit_count: 0,
          bonus_money: 0,
          loyalty_last_earned_points: 0,
          is_cash_out_available: true,
          external_id: '0xe56e7AcA0441480326400C35c95926033c71472a',
          doc_region_id: 0,
          last_login_ip: '91.103.58.245',
          status: 2,
          currencies: 'FTN,TRX,ETH,BTC,MBT,MET',
          is_email_verified: false,
          loyalty_level_name: '1',
          is_resident: false,
          is_subscribe_to_casino_news_letter: true,
          is_subscribe_to_casino_email: true,
          is_subscribe_to_casino_sms: true,
          is_subscribe_to_casino_bonus: true,
          is_subscribe_to_casino_internal_message: true,
          is_subscribe_to_casino_push_notification: true,
          is_subscribe_to_casino_phone_call: true,
          is_subscribe_to_direct_mail: true,
          needs_subscriptions_update: false
        }
      }
    }
  }
}

Response parameters:

NameDescriptionTypeValues
profile
User profile, keyed by user ID object
└─ [userId]
Profile object for the user ID object
└─ id
User identifier number-
└─ username
Login usernamestring-
└─ name
Full namestring-
└─ first_name
First namestring-
└─ last_name
Last namestring-
└─ email
Email addressstring-
└─ phone
Phone numberstring-
└─ currency_id
Active currency codestring"TUS" / etc.
└─ currency_name
Currency display namestring"USDT" / etc.
└─ balance
Sportsbook balancenumber-
└─ casino_balance
Casino balancenumber-
└─ country_code
Country codestring-
└─ reg_date
Registration datestring-
└─ birth_date
Date of birthstring-
└─ status
Account statusnumber-
└─ is_verified
Verification statusbooleantrue / false
└─ last_login_date
Last login timestamp (Unix)number-
└─ authentication_status
Authentication statusnumber-
└─ is_two_factor_authentication_enabled
2FA enabled for the userbooleantrue / false
└─ subscribe_to_push_notification
Push notifications enabledbooleantrue / false
└─ subscribe_to_internal_message
Internal messages enabledbooleantrue / false
└─ external_id
External identifierstring-
└─ loyalty_point
Loyalty pointsnumber-
└─ loyalty_level_id
Loyalty levelnumber-
└─ has_free_bets
Has free betsbooleantrue / false
└─ is_cash_out_available
Cash out allowedbooleantrue / false
└─ bonus_balance
Bonus balancenumber-
└─ frozen_balance
Frozen balancenumber-
└─ language
User languagestring-
└─ currencies
Supported currency codesstring-
└─ wallets
Wallet dataobject
└─ sportsbook_profile_id
Sportsbook profile typenumber-
└─ active_step
Verification stepnumber-
└─ active_step_state
Verification step statenumber-
└─ terms_and_conditions_version
T&C versionstring-
└─ terms_and_conditions_acceptance_date
T&C acceptance datestring-
└─ reg_info_incomplete
Registration incompletebooleantrue / false
└─ address
Addressstring-
└─ city
Citystring-
└─ zip_code
ZIP/Postal codestring-
└─ doc_number
Document numberstring-
└─ personal_id
Personal IDstring-
└─ iban
IBANstring-
└─ btag
Tag/identifierstring-
└─ last_login_ip
Last login IPstring-
└─ is_bonus_allowed
Bonus allowedbooleantrue / false
└─ needs_subscriptions_update
Subscriptions need updatebooleantrue / false
└─ unique_id
Unique user identifiernumber-
└─ _parent_id
Parent user IDnumber-
└─ _level
Data levelstring-
└─ middle_name
Middle namestring-
└─ gender
Genderstring-
└─ casino_promo
Casino promo code or identifierstring-
└─ currency
Currency codestring"TUS" / etc.
└─ exclude_date
Exclusion (self-exclusion) datestring-
└─ bonus_id
Bonus identifiernumber-
└─ games
Games countnumber-
└─ super_bet
Super bet dataobject
└─ doc_issued_by
Document issuerstring-
└─ doc_issue_date
Document issue datestring-
└─ doc_issue_code
Document issue codestring-
└─ province
Provincestring-
└─ subscribed_to_news
Subscribed to newsbooleantrue / false
└─ bonus_win_balance
Bonus win balancenumber-
└─ loyalty_earned_points
Total loyalty points earnednumber-
└─ loyalty_exchanged_points
Loyalty points exchangednumber-
└─ affiliate_id
Affiliate IDnumber-
└─ incorrect_fields
List of incorrect/incomplete fieldsarray-
└─ loyalty_point_usage_period
Loyalty point usage periodnumber-
└─ loyalty_min_exchange_point
Minimum points required for exchangenumber-
└─ loyalty_max_exchange_point
Maximum points allowed for exchangenumber-
└─ active_time_in_casino
Total active time spent in casinonumber-
└─ last_read_message
Last read message identifierstring-
└─ unread_count
Number of unread messagesnumber-
└─ swift_code
SWIFT codestring-
└─ counter_offer_min_amount
Minimum amount for counter offernumber-
└─ subscribe_to_email
Subscribed to email notificationsbooleantrue / false
└─ subscribe_to_sms
Subscribed to SMS notificationsbooleantrue / false
└─ subscribe_to_bonus
Subscribed to bonus notificationsbooleantrue / false
└─ is_tax_applicable
Tax is applicable to the userbooleantrue / false
└─ nem_id_token
NEM ID tokenstring-
└─ mobile_phone
Mobile phone numberstring-
└─ additional_address
Additional address detailsstring-
└─ birth_region
Birth regionstring-
└─ supported_currencies
Supported currenciesstring-
└─ previous_login_time
Previous login timestampnumber-
└─ nick_name
Nicknamestring-
└─ is_super_bet_available
Super bet feature is availablebooleantrue / false
└─ is_gdpr_passed
GDPR consent has been passedbooleantrue / false
└─ subscribe_to_phone_call
Subscribed to phone call notificationsbooleantrue / false
└─ title
User titlestring-
└─ last_preferred_currency
Last preferred currencystring-
└─ is_agent
User is an agentbooleantrue / false
└─ qr_code_origin
QR code origin/sourcestring-
└─ session_duration
Session durationnumber-
└─ is_new_client
Is a new clientbooleantrue / false
└─ unplayed_balance
Unplayed balancenumber-
└─ exclude_type
Exclusion typestring-
└─ casino_bonus
Casino bonus amountnumber-
└─ casino_bonus_win
Casino bonus win amountnumber-
└─ birth_city
Birth citystring-
└─ client_pep_status
PEP (Politically Exposed Person) statusstring-
└─ cashdesk_id
Cashdesk IDnumber-
└─ last_sport_bet_time
Last sport bet timestamp (Unix)number-
└─ sport_bonus
Sport bonus amountnumber-
└─ is_phone_verified
Phone is verifiedbooleantrue / false
└─ is_mobile_phone_verified
Mobile phone is verifiedbooleantrue / false
└─ limit_check_state
Limit check statestring-
└─ deposit_count
Total deposit countnumber-
└─ bonus_money
Bonus moneynumber-
└─ loyalty_last_earned_points
Last earned loyalty pointsnumber-
└─ doc_region_id
Document region IDnumber-
└─ is_email_verified
Email is verifiedbooleantrue / false
└─ loyalty_level_name
Loyalty level namestring-
└─ is_resident
User is a residentbooleantrue / false
└─ is_subscribe_to_casino_news_letter
Subscribed to casino newsletterbooleantrue / false
└─ is_subscribe_to_casino_email
Subscribed to casino email notificationsbooleantrue / false
└─ is_subscribe_to_casino_sms
Subscribed to casino SMS notificationsbooleantrue / false
└─ is_subscribe_to_casino_bonus
Subscribed to casino bonus notificationsbooleantrue / false
└─ is_subscribe_to_casino_internal_message
Subscribed to casino internal messagesbooleantrue / false
└─ is_subscribe_to_casino_push_notification
Subscribed to casino push notificationsbooleantrue / false
└─ is_subscribe_to_casino_phone_call
Subscribed to casino phone call notificationsbooleantrue / false
└─ is_subscribe_to_direct_mail
Subscribed to direct mailbooleantrue / false