Skip to content
Home
Business OS Blog How it works Hosting Compare
Language
العربية Coming soon
বাংলা Coming soon
Dansk Coming soon
Deutsch Coming soon
Español Coming soon
Suomi Coming soon
Français Coming soon
עברית Coming soon
हिन्दी Coming soon
Magyar Coming soon
Bahasa Indonesia Coming soon
Italiano Coming soon
한국어 Coming soon
Latviešu Coming soon
Nederlands Coming soon
Norsk Coming soon
Polski Coming soon
Português Coming soon
Српски Coming soon
Svenska Coming soon
Türkçe Coming soon
Українська Coming soon
中文 Coming soon
Currency

Game servers

Businesses with kind "game" are game servers. They have files and logs like any business, no shell, and a console and power switch instead.

Get server state

GET/businesses/{business}/state

running, starting, stopping or offline.

Needs the files:read scope.

Parameters

business integer, in path, required
The business id, from GET /businesses.
curl "https://helstify.com/api/v1/businesses/60/state" \
  -H "Authorization: Bearer $HELSTIFY_KEY"
const res = await fetch("https://helstify.com/api/v1/businesses/60/state", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.HELSTIFY_KEY}`,
  },
});
const data = await res.json();
import os, requests

res = requests.get(
    "https://helstify.com/api/v1/businesses/60/state",
    headers={"Authorization": f"Bearer {os.environ['HELSTIFY_KEY']}"},
)
print(res.json())
Response200
{
    "ok": true,
    "business": "StampedeMC",
    "state": "running"
}

Send a console command

POST/businesses/{business}/console

Send one command to the game console. Read /logs for the answer.

Needs the commands:run scope.

Parameters

business integer, in path, required
The business id, from GET /businesses.

Body

command string
For example say Restarting in 5 minutes
curl -X POST "https://helstify.com/api/v1/businesses/60/console" \
  -H "Authorization: Bearer $HELSTIFY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"command":"say Restarting in 5 minutes"}'
const res = await fetch("https://helstify.com/api/v1/businesses/60/console", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.HELSTIFY_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
      "command": "say Restarting in 5 minutes"
  }),
});
const data = await res.json();
import os, requests

res = requests.post(
    "https://helstify.com/api/v1/businesses/60/console",
    headers={"Authorization": f"Bearer {os.environ['HELSTIFY_KEY']}"},
    json={
        "command": "say Restarting in 5 minutes"
    },
)
print(res.json())
Response200
{
    "ok": true,
    "business": "StampedeMC",
    "sent": "say Restarting in 5 minutes",
    "note": "Read /logs to see what the server answered."
}

Start, stop or restart

POST/businesses/{business}/power

Players are disconnected by anything but start.

Needs the power scope.

Parameters

business integer, in path, required
The business id, from GET /businesses.

Body

signal string
For example restart
curl -X POST "https://helstify.com/api/v1/businesses/60/power" \
  -H "Authorization: Bearer $HELSTIFY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"signal":"restart"}'
const res = await fetch("https://helstify.com/api/v1/businesses/60/power", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.HELSTIFY_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
      "signal": "restart"
  }),
});
const data = await res.json();
import os, requests

res = requests.post(
    "https://helstify.com/api/v1/businesses/60/power",
    headers={"Authorization": f"Bearer {os.environ['HELSTIFY_KEY']}"},
    json={
        "signal": "restart"
    },
)
print(res.json())
Response200
{
    "ok": true,
    "business": "StampedeMC",
    "signal": "restart"
}