Skip to main content
All endpoints in this section require admin privileges. Unauthorized access will result in a 403 Forbidden response.

Ban / Unban User

POST /admin/ban

Bans or unbans a user. Sends a notification to the Discord moderation channel with ban details.
POST /admin/ban
Authentication: connected, admin Body Parameters
steamId
string
required
The Steam ID of the user to ban/unban.
time
integer
required
Ban duration in seconds. Set to 0 to unban.
reason
string
required
Reason for the ban.
Response
{
  "status": "success",
  "data": {
    "message": "User banned",
    "steamId": "76561198000000000",
    "duration": "7 days",
    "reason": "Market manipulation"
  }
}
Unban Response
{
  "status": "success",
  "data": {
    "message": "User unbanned",
    "steamId": "76561198000000000",
    "duration": "0",
    "reason": "Appeal accepted"
  }
}
Errors
StatusMessage
errorMissing required parameters: steamId, time, reason
errorAdmin user not found

Get Ban History

GET /admin/banList

Retrieves the ban history for a specific user.
GET /admin/banList
Authentication: connected, admin Query Parameters
steamId
string
required
The Steam ID of the user to look up.
Response
{
  "status": "success",
  "data": {
    "steamId": "76561198000000000",
    "bans": [
      {
        "id": 1,
        "steamId": "76561198000000000",
        "time": 604800,
        "reason": "Market manipulation",
        "staffId": "76561198999999999",
        "timestamp": 1706745600
      }
    ],
    "count": 2
  }
}

Revert Trade

POST /admin/revertTrade/:trade

Reverts a failed or errored trade, restoring items to the user’s inventory.
POST /admin/revertTrade/{trade}
Authentication: connected, admin Path Parameters
trade
integer
required
The trade ID to revert.
Response
{
  "status": "success",
  "data": {
    "message": "Trade reverted successfully",
    "tradeId": 12345,
    "itemsUpdated": 3,
    "items": [
      {
        "id": 1,
        "name": "Unusual Hat",
        "assetId": "9876543210"
      }
    ]
  }
}
Errors
StatusMessage
errorMissing required parameter: trade
errorTrade not found
errorNo 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.
GET /admin/getSteamInventory
Authentication: connected, admin Query Parameters
game
integer
required
The game ID (e.g., 440 for TF2, 730 for CS:GO).
steamid
string
required
The Steam ID of the user whose inventory to fetch.
Response
{
  "status": "success",
  "data": {
    "items": [
      {
        "assetid": "9876543210",
        "classid": "123456",
        "instanceid": "0",
        "name": "Item Name",
        "icon_url": "https://..."
      }
    ]
  }
}