Games

Make a new game token

POST/api/integrations/games/{game}/token
Admin. Needs an unlock token (x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.

A new token: the installed config file stops working until it is downloaded again.

Path parameters

gamestringrequired

cs2 or dota2.

Responses

200OKapplication/json
tokenstring
403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

404No such id.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X POST 'http://localhost:8080/api/integrations/games/cs2/token'
Response
{
  "token": "9f8e7d6c5b4a39281706f5e4d3c2b1a0"
}
Edit on GitHub