Skip to content

Server

Status, queue, map, settings, weather and restarts.

Your key stays in this tab. Calls go straight to your server.

GET/api/v1/actions

Actions this key may call

Answers

200OK
{
  "actions": [
    {
      "name": "announce",
      "family": "server",
      "scopes": [
        "server:act"
      ],
      "allowed": true
    }
  ]
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/actions" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

POST/api/v1/actions/server.announce

Announce to everyone in game

server:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

text *string

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.announce",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.announce" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"text":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.corpse_wipe

Wipe every corpse now

server:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.corpse_wipe",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.corpse_wipe" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.game_settings

Save Game.ini (applies at the next restart)

server:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

content *string
expected_sha256 *string

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.game_settings",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.game_settings" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"content":"string","expected_sha256":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.map_object_place

Place a map object

server:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

meshstring
kindstring
at *object
labelstring
presetstring
stylestring
expected_sha256string

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.map_object_place",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.map_object_place" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"mesh":"string","kind":"string","at":{},"label":"string","preset":"string","style":"string","expected_sha256":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.map_object_remove

Remove a map object

server:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

object_id *string
expected_sha256string

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.map_object_remove",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.map_object_remove" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"object_id":"string","expected_sha256":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.map_objects_send

Send the map objects to the game

server:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

contentstring
expected_sha256string

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.map_objects_send",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.map_objects_send" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"content":"string","expected_sha256":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.population

Population control settings

server:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

enabledboolean
capsany[]
locksany[]
dynamicany[]
policy_generationinteger
policy_sha256string
baseany
rowsany[]
islandstring

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.population",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.population" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false,"caps":[null],"locks":[null],"dynamic":[null],"policy_generation":0,"policy_sha256":"string","base":null,"rows":[null],"island":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.rcon

One RCON command from the site's RCON list

rcon:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

verb *string
argsobject

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.rcon",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.rcon" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"verb":"string","args":{}}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.restart

Restart the game server (now: at once; warn: countdown first)

power:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

modeany

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.restart",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.restart" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"mode":"now"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.restart_schedule

Scheduled restarts with countdown warnings

power:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

enabledboolean
times_utcstring[]
lead_minutesinteger
timezonestring
muted_rungsany[]
messagesobject
expected_sha256string

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.restart_schedule",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.restart_schedule" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"enabled":false,"times_utc":["string"],"lead_minutes":0,"timezone":"string","muted_rungs":[null],"messages":{},"expected_sha256":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.start

Start the game server

power:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.start",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.start" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.stop

Stop the game server

power:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.stop",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.stop" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

Try it

Add your site and key at the top.

POST/api/v1/actions/server.weather

Change the weather now

server:act

Send an Idempotency-Key: the same key returns the first result and never acts twice. Read the result at status_url.

Body

kind *any
skystring
minutesinteger

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "server.weather",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl -X POST "https://your-site.com/api/v1/actions/server.weather" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"kind":"storm_now","sky":"string","minutes":0}'

Try it

Add your site and key at the top.

GET/api/v1/actions/{action_id}

An action's result

Parameters

action_id *path · stringThe id an action call answered

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "heal",
  "state": "done",
  "at": 0,
  "status_url": "/api/v1/actions/act_00000000000000000000000000000000"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/actions/{action_id}" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/server/online

Players in game now (Steam ID, name, species)

server:read

Answers

200OK
{
  "data": [
    {
      "steam_id": "76561198000000000",
      "name": "Player",
      "species": "Rex"
    }
  ],
  "count": 1
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/server/online" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/server/population

Species population: active, limit and state per species

server:read

Answers

200OK
{
  "species": [
    {
      "id": "Rex",
      "name": "Tyrannosaurus",
      "active": 3,
      "limit": 5,
      "state": "open"
    }
  ]
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/server/population" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/server/restarts

Restart schedule and the next restart

server:read

Answers

200OK
{
  "next": {
    "in_seconds": 3600,
    "at_local": "17:55"
  },
  "times": [
    "05:55",
    "17:55"
  ],
  "timezone": "UTC"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/server/restarts" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/server/settings

Game settings: server name, max players, AI spawning and density

server:read

Answers

200OK
{
  "name": "My server",
  "max_players": 100,
  "ai": {
    "spawn": true,
    "density": 1
  }
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/server/settings" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/server/status

Server status: online, players, max players, map, uptime, next restart, weather

server:read

The same status the website shows.

Answers

200OK
{
  "online": true,
  "players": 12,
  "max_players": 100,
  "map": "Gateway",
  "server": "My server"
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/server/status" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/server/weather

Weather now

server:read

Answers

200OK
{
  "label": "Clear",
  "storm": false
}
401Error
errorobject
error.codestring
error.messagestring
403Error
errorobject
error.codestring
error.messagestring
429Error
errorobject
error.codestring
error.messagestring

Code

curl "https://your-site.com/api/v1/server/weather" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.