modl.gg

Dashboard Stats

Retrieve dashboard statistics including player counts, active punishments, and open tickets.

GET /v1/minecraft/dashboard/stats

Retrieve real-time dashboard statistics for the server, including player counts, active punishment totals, and unresolved ticket and report counts. This endpoint is designed to power dashboard overview widgets.

Authentication

Requires the X-API-Key header with your server's API key.

X-API-Key: your-api-key-here

Request

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour server's API key.

This endpoint takes no additional parameters.

Response

200 OK

{
  "stats": {
    "unresolvedReports": 0,
    "unresolvedTickets": 0,
    "onlineStaff": 0,
    "onlinePlayers": 0,
    "activeBans": 0,
    "activeMutes": 0,
    "totalActivePunishments": 0,
    "totalPlayers": 0
  }
}

Error Responses

Status CodeDescription
401Missing or invalid API key.
429Rate limit exceeded.
500Internal server error.

On this page