Skip to content

Players

Profiles, linked accounts, sessions and playtime.

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

POST/api/v1/actions/players.bring

Bring a player to the owner's animal

players:act

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

Body

steam_id *stringFull Steam ID
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "players.bring",
  "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/players.bring" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"steam_id":"string","reason":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/players.dm

Send one player a private message in game

players:act

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

Body

steam_id *stringFull Steam ID
text *string

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "players.dm",
  "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/players.dm" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"steam_id":"string","text":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/players.goto

Send the owner's animal to a player

players:act

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

Body

steam_id *stringFull Steam ID
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "players.goto",
  "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/players.goto" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"steam_id":"string","reason":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/players.teleport

Teleport a player to x/y/z or to another player

players:act

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

Body

steam_id *stringFull Steam ID
to_steam_idstringFull Steam ID
xnumber
ynumber
znumber
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "players.teleport",
  "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/players.teleport" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"steam_id":"string","to_steam_id":"string","x":0,"y":0,"z":0,"reason":"string"}'

Try it

Add your site and key at the top.

POST/api/v1/actions/players.unstuck

Unstuck a player (as if they pressed Unstuck)

players:act

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

Body

steam_id *stringFull Steam ID
reasonstringShown in the admin log

Answers

200OK
{
  "id": "act_00000000000000000000000000000000",
  "action": "players.unstuck",
  "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/players.unstuck" \
  -H "Authorization: Bearer $SEQUENCE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"steam_id":"string","reason":"string"}'

Try it

Add your site and key at the top.

GET/api/v1/clans

Every clan, biggest first (name, tag, leader, member count)

players:read

Parameters

qquery · stringpart of a clan's name or tag
recruitingquery · booleanonly clans recruiting
limitquery · integerRows per page (1-100)

Answers

200OK
{
  "data": [
    {
      "id": 3,
      "name": "Pack",
      "tag": "PK",
      "members": 5,
      "leader_sid": "76561198000000000"
    }
  ],
  "next_cursor": null
}
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/clans" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/clans/by-player/{steam_id}

A player's clan, their rank and the clan's members

players:read

Parameters

steam_id *path · stringFull Steam ID (17 digits)

Answers

200OK
{
  "clan": {
    "id": 3,
    "name": "Pack",
    "members": []
  },
  "rank": "member"
}
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/clans/by-player/{steam_id}" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/clans/{clan_id}

One clan with its members and their ranks (leader, officer, member)

players:read

Parameters

clan_id *path · integerThe clan's id

Answers

200OK
{
  "id": 3,
  "name": "Pack",
  "tag": "PK",
  "members": [
    {
      "steam_id": "76561198000000000",
      "rank": "leader"
    }
  ],
  "member_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/clans/{clan_id}" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/players

Every player this server knows, newest activity first

players:read

Add linked=yes to list only players who linked a Discord account, linked=no for those who did not.

Parameters

limitquery · integerRows per page (1-100)
cursorquery · stringnext_cursor of the previous page
linkedquery · stringyes = only players with a linked Discord, no = only players without; leave out for everyone

Answers

200OK
{
  "data": [
    {
      "steam_id": "76561198000000000",
      "name": "Player",
      "discord_id": "123",
      "last_seen": 1761955200
    }
  ],
  "next_cursor": "25"
}
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/players" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/players/by-discord/{discord_id}

A player's profile by Discord ID

players:read

Parameters

discord_id *path · stringDiscord user ID

Answers

200OK
{
  "steam_id": "76561198000000000",
  "name": "Player"
}
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/players/by-discord/{discord_id}" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/players/by-discord/{discord_id}/verify

Check that a Discord user linked a Steam account here (optionally with a minimum of hours played)

players:read

For your own Discord bot: give chat access only to verified users. Always 200 for a well-formed Discord ID. linked = this Discord user linked a Steam account on this server's website. hours = hours played on THIS server (null when it cannot be told). verified = linked and hours >= min_hours; with min_hours above 0 an unknown hours count is never verified.

Parameters

discord_id *path · stringDiscord user ID
min_hoursquery · numberHours played on this server needed to count as verified (default 0)

Answers

200OK
{
  "discord_id": "123456789012345678",
  "linked": true,
  "steam_id": "76561198000000000",
  "name": "Player",
  "hours": 12.5,
  "min_hours": 5,
  "verified": 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/players/by-discord/{discord_id}/verify" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.

GET/api/v1/players/{steam_id}

A player's profile: name, linked Discord, island time, first and last seen, playtime

players:read

Parameters

steam_id *path · stringFull Steam ID (17 digits)

Answers

200OK
{
  "steam_id": "76561198000000000",
  "name": "Player",
  "discord": {
    "linked": true,
    "name": "player"
  },
  "island": {
    "played": true,
    "minutes": 1234
  },
  "first_seen": 1758000000,
  "last_seen": 1761955200
}
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/players/{steam_id}" \
  -H "Authorization: Bearer $SEQUENCE_KEY"

Try it

Add your site and key at the top.