API
Serverinformationen abfragen
Endpunkt
GET https://api.hytl.de/api/v1/server/me
Headers
Authorization: Bearer <SERVER_API_TOKEN>
HTTP Codes
200 - Antwort enthält Body mit Serverinformationen401 - Authorization fehlt in Headers403 - SERVER_API_TOKEN ist ungültig429 - Rate-Limit von 30 Request pro Stunde überschritten
Antwort (JSON)
{
"serverId": "string",
"vanityUrl": "string | null",
"serverVersion": "string | null",
"runtimePlugins": ["string"],
"runtimeUpdatedAt": "string | null",
"maxSlots": 0,
"currentPlayers": 0,
"currentMaxPlayers": 0,
"currentLatencyMs": 0,
"currentUptimePercent": 0,
"lastTelemetryAt": "string | null",
"online": true,
"currentOnlinePlayers": [
{ "name": "string", "joinedAt": "string | null" }
],
"retrievedAt": "string"
}