AuthenticateUser
Category: Authentication Permissions: Public CallType: Synchronous
Request
Use this request call
Or you can use this request call
Authenticates a user for the current websocket session.
Username
string. The user's assigned user name.
Password
string. The user's assigned password.
or
APIKey
string. This is an AlphaPoint-generated key used in user-identification.
Signature
string. A long, alphanumeric string generated by AlphaPoint by using the APIKey and Nonce.
UserId
string. The ID of the user, stated as a string.
UserName
string. The user's assigned user name.
Nonce
string. Any arbitrary number or random string used with the APIKey to generate a signature.
Response
Authenticated response
False authenticated response
authenticated
Boolean. True if the user is authenticated; false otherwise.
user
JSON user object (below)
locked
Boolean. True if this affiliated user is currently locked; false otherwise. A user may be locked by trying to log in too many times in rapid succession. He must be unlocked by an admin.
requires2FA
Boolean. True if the user must use two-factor authentication; false otherwise.
twoFAType
string. Returns the type of 2FA this user requires. For example, "Google."
twoFAToken
string. Returns an appropriate token. In the case of Google, this is a QR code.
errormsg
string. A successful receipt of the call returns null.
JSON user object:
userId
integer. The ID of the user being authenticated on the exchange.
userName
string. The name of the user.
string. The email address of the user.
emailVerified
Boolean. Whether the email address has been verified by the registration process or directly by an Admin.
accountId
integer. The ID of the account with which the user is associated (each user has a default account).
omsId
integer. The ID of the Order Management System with which the user and account are associated.
use2FA
Boolean. True if the user must use 2FA to log in; false otherwise.
Last updated