Command service API

The Command service provides an HTTP API for third-party applications, letting your website send commands to the game.

We require a security token to send requests to this service because it can send commands directly to the game.


POST /commands/game

A command is composed of a key-value pair. The game uses the key to identify the type of command. The value is a string that your game can parse.

Request Headers:
  • secret – Security token required to send requests to the service.
Response JSON Object:
  • key (string) – The ID the game uses to recognize the type of command.
  • value (string) – The value the game parses into a command.

Example response:

  "key": "",
  "value": ""