Ban / Unban User
POST /admin/ban
Bans or unbans a user. Sends a notification to the Discord moderation channel with ban details.
connected, admin
Body Parameters
The Steam ID of the user to ban/unban.
Ban duration in seconds. Set to
0 to unban.Reason for the ban.
| Status | Message |
|---|---|
error | Missing required parameters: steamId, time, reason |
error | Admin user not found |
Get Ban History
GET /admin/banList
Retrieves the ban history for a specific user.
connected, admin
Query Parameters
The Steam ID of the user to look up.
Revert Trade
POST /admin/revertTrade/:trade
Reverts a failed or errored trade, restoring items to the user’s inventory.
connected, admin
Path Parameters
The trade ID to revert.
| Status | Message |
|---|---|
error | Missing required parameter: trade |
error | Trade not found |
error | No trade found with status -1 to revert |
Get Steam Inventory (Admin)
GET /admin/getSteamInventory
Retrieves the Steam inventory of a user directly from the Steam API. Used for admin verification purposes.
connected, admin
Query Parameters
The game ID (e.g.,
440 for TF2, 730 for CS:GO).The Steam ID of the user whose inventory to fetch.