Skip to content

REST API

ZombsRoyale’s API is split into two components that each handle different things. Below is the documentation for the HTTPS/REST part.

GET /api

Description: Health check.

GET /api/:tournament-code:/join

Description: Returns tournament status. The tournament is open if the status field is “success”.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
userKeyaccount tokenno

GET /api/leaderboard/live

Description: Returns ApiLeaderboardResponse object.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
userKeyaccount tokenno
modegame mode; options: solo, duo, squad, limitedno
timeoptions: 24h, 7d, 1m, 1y, all (all time)no
categoryoptions: wins, kills, kills_per_round, winrate, time_alive, rounds, top10no

GET /api/shop/available

Description: Returns ApiShopAvailableResponse object.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
userKeyaccount tokenno
sectionsoptions: all, items, iaps, packs, timedDealsno

POST /api/shop/discord/handle

Description: Unknown.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
userKeyaccount tokenyes

POST /api/shop/unity/handle

Description: Unknown.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
userKeyaccount tokenyes

GET /api/user/:user-key:

Description: Returns ApiUser object.

POST /api/user/:user-key:/clear-sessions

Description: Revokes all user keys.

POST /api/user/:user-key:/friend-code/update

Description: Changes friend code & charges gems.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
namenew nameyes

POST /api/user/:user-key:/delete-account

Description: Deletes account.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
confirmationKeyauthentication tokenyes

POST /api/user/:user-key:/buy

Description: Buys an item from the shop.
Query Parameters:

NAMEDESCRIPTIONREQUIRED
quantityitem countyes
timedDealIditem countno*
itemIditem countno*
packIditem countno*

* one of these must me present