GetSession() API

Any Request parameters that are part of this API request would be provided with a token / session_id, typically a unique string assigned to each player. This response would contain information from the given session_id, such as player’s account ID, username / alias, first name last name etc.

GetSession() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/get_session
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"token": "3c2ef39d02581e2db3ddf6c713e83e05"
}
ParametersTypeDescription
tokenStringUnique string assigned to each player

GetSession() Response + Example

{
	"status": 0,
	"account_id": "123123",
	"username": "test_username",
	"country": "US",
	"token": "3c2ef39d02581e2db3ddf6c713e83e05",
	"balance": 12345,
	"currency": "USD"
}
Object/Key in Response ObjectTypeDescription
statusIntegerResponse status
account_idStringAccount ID of the player
usernameStringUsername of the player or alternatively it can be the value of account_id when the actual username can’t be shared
countryStringCountry of the player
tokenStringUnique string assigned to each player (session ID).
balanceIntegerBalance of the player
currencyStringCurrency of the player