Skip to main content

⏹️ Close

Closes the active session.

URL Endpoint​

/sessions/close/

Parameters​

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

Returns​

NameTypeDescription
successbooleanWhether the request succeeded or failed. Example: true
messagestringIf the request was not successful, this contains the error message. Example: Unknown fatal error occurred.

Syntax​

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

Request Example​

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

Errors​

Affected parameterDescriptionError message
noneNo open session exists, open a new one!Could not find an open session. You must open a new one.

Version history​

VersionDescription
1.0First implementation