curl --request GET \
--url https://api.example.com/api/servers/:server/logs{
"data": [
{}
]
}curl --request GET \
--url https://api.example.com/api/servers/:server/logs{
"data": [
{}
]
}Retrrieves the most recent lines from the server’s console log file.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pterodactyl/wings/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header:
Authorization: Bearer <token>
size parameter)curl -X GET https://wings.example.com/api/servers/8d3f9a2e-5c7b-4f1e-9d2a-6e8f1c3b5a7d/logs \
-H "Authorization: Bearer your-wings-token" \
-H "Accept: application/json"
curl -X GET "https://wings.example.com/api/servers/8d3f9a2e-5c7b-4f1e-9d2a-6e8f1c3b5a7d/logs?size=50" \
-H "Authorization: Bearer your-wings-token" \
-H "Accept: application/json"
{
"data": [
"[10:30:15] [Server thread/INFO]: Starting minecraft server version 1.20.1",
"[10:30:15] [Server thread/INFO]: Loading properties",
"[10:30:15] [Server thread/INFO]: Default game type: SURVIVAL",
"[10:30:16] [Server thread/INFO]: Generating keypair",
"[10:30:16] [Server thread/INFO]: Starting Minecraft server on *:25565",
"[10:30:17] [Server thread/INFO]: Preparing level \"world\"",
"[10:30:18] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld",
"[10:30:20] [Server thread/INFO]: Done (5.234s)! For help, type \"help\""
]
}
router/router_server.go:26 and server/server.go:252