Skip to main content

✅ Check

Checks to see if there is an open session for the user. Can be used to see if a particular user account is active in the game.

URL Endpoint​

/sessions/check/

Parameters​

NameRequired?TypeDescription
game_idYesstringThe ID of your game.
usernameYesstringThe user's username.
user_tokenYesstringThe user's token.

Returns​

NameTypeDescription
successbooleanWhether an open session exists. Example: true
messagestringIf the request was not successful, this contains the error message. Example: Unknown fatal error occurred.

Remarks​

  • This endpoint returns false for the success field when no open session exists. That behaviour is different from other endpoints which use this field to indicate an error state.

Syntax​

/sessions/check/?game_id=xxxxx&username=myusername&user_token=mytoken

Request Example​

GET https://api.gamejolt.com/api/game/v1_2/sessions/check/
?game_id=1
&username=hjake
&user_token=404432
&signature=af8b72e5668e2175a024220b2401869e
HTTP/1.1
Host: api.gamejolt.com

Version history​

VersionDescription
1.2First implementation