Command service API

The Command service provides an HTTP API for third party applications. It provides a way to send commands to the game.

This API can send commands directly to the game, so it is important to protect this API. A security token is required in order to send requests to this service.

Command

POST /commands/game

A command is composed of a key and a value. The key is used by the game to identify the type of command. The value is a string that can have any value. It’s the responsibility of the game to parse the value.

Request Headers:
 
  • secret – Secret needed by this service
Response JSON Object:
 
  • key (string) – The command ID
  • value (string) – The value for the game.

Example response:

{
  "key": "",
  "value": ""
}