Session

Session management

Get basic details of the logged in user

get
Authorizations
PRIVATE-TOKENstringRequired
Responses
chevron-right
200

OK

application/json
userIdinteger · integerRequired

Your user ID

userNamestringRequired

Your user name

emailstringRequired

Email

firstNamestringRequired

First name

lastNamestringRequired

Last name

genderstringRequired

User gender

phonestringRequired

Phone number

accessLevelinteger · integerRequired

0: Guest, 10: Regular logged in user, 20: Game Hosting management access

validateEmailinteger · integerRead-onlyRequired

Whether or not user email is validated

isTrialAccountinteger · integerRead-onlyRequired

Whether or not user is trial account

trialAccountExpirationDatestringRead-onlyRequired

The expiration date of the trial account

requestIpstringRequired

Request IP address

requestIpCountrystringRequired

The GeoLocation country (ISO 3166) of the request IP address

requestIpCountryCodestringRequired

The GeoLocation country code (ISO 3166 Alpha-2) of the request IP address

get
/v3/session/user

Log in

post
Authorizations
PRIVATE-TOKENstringRequired
Body
userNamestringRequired

User name

passwordstringRequired

Password

rememberMeinteger · integerOptional

Remember me

Responses
chevron-right
200

OK

application/json
requiresOtpbooleanRequired

Indicates whether a 2FA One-Time Password token is required to complete the login.

expiresAtinteger · integerRequired

Unix timestamp indicating when the window for 2FA authentication closes, 0 if not applicable.

otpSessionExpiresAtinteger · integerRequired

If 2FA is active on your account, you must supply the one-time-password before this unix timestamp expires.

post
/v3/session/login

Provide 2FA One-Time Password after a successful login (if requiresOtp is true in SessionAuthReq, as returned by /session/login)

post
Authorizations
PRIVATE-TOKENstringRequired
Body
otpstringRequired

6 digit One-Time Password

Responses
post
/v3/session/login/otp

No content

Log out

post
Authorizations
PRIVATE-TOKENstringRequired
Responses
post
/v3/session/logout

No content

Last updated

Was this helpful?