Skip to main content

getkey

POST /auth/getkey/

Description

This endpoint will generate a temporary authkey or sessionkey for a given user and server. The authkey will be send to the proxy as the username flag provided when starting the KoCity client

The authkey is only valid till its either used once or 10 minutes have passed.

Body

The body of the request should be JSON, and should contain the following:

VariableDescription
usernameThe username of the user defined when registering
authTokenThe personal authtoken stored in the launcher
serverThe address defined in the server list and in the config file of the proxy

Example

{
"username": "Users_Username",
"authToken": "Users_Auth_Token",
"server": "127.0.0.1:23600"
}

Response

{
"authkey": "A_Temporary_Auth_Key"
}