Skip to main content
GET
/
api
/
servers
/
:server
Get Server Details
curl --request GET \
  --url https://api.example.com/api/servers/:server
{
  "state": "<string>",
  "is_suspended": true,
  "utilization": {
    "state": "<string>",
    "memory_bytes": 123,
    "memory_limit_bytes": 123,
    "cpu_absolute": 123,
    "disk_bytes": 123,
    "network_rx_bytes": 123,
    "network_tx_bytes": 123,
    "uptime": 123
  },
  "configuration": {
    "uuid": "<string>",
    "suspended": true,
    "invocation": "<string>",
    "skip_egg_scripts": true,
    "build": {},
    "container": {},
    "allocations": {}
  }
}
Returns detailed information about a single server instance, including its current state, resource utilization, and configuration.

Authentication

Requires the Wings authentication token in the Authorization header:
Authorization: Bearer <token>

Path Parameters

server
string
required
The UUID of the server

Response

state
string
Current state of the server. One of: offline, starting, running, stopping
is_suspended
boolean
Whether the server is currently suspended
utilization
object
Current resource usage statistics
configuration
object
Server configuration details

Error Responses

404 Not Found
The requested server does not exist on this Wings instance.

Example Request

curl -X GET https://wings.example.com/api/servers/8d3f9a2e-5c7b-4f1e-9d2a-6e8f1c3b5a7d \
  -H "Authorization: Bearer your-wings-token" \
  -H "Accept: application/json"

Example Response

{
  "state": "running",
  "is_suspended": false,
  "utilization": {
    "state": "running",
    "memory_bytes": 536870912,
    "memory_limit_bytes": 1073741824,
    "cpu_absolute": 25.5,
    "disk_bytes": 2147483648,
    "network_rx_bytes": 1024000,
    "network_tx_bytes": 512000,
    "uptime": 3600000
  },
  "configuration": {
    "uuid": "8d3f9a2e-5c7b-4f1e-9d2a-6e8f1c3b5a7d",
    "suspended": false,
    "invocation": "java -Xms128M -Xmx1024M -jar server.jar",
    "skip_egg_scripts": false,
    "build": {
      "memory_limit": 1024,
      "swap": 0,
      "io_weight": 500,
      "cpu_limit": 100,
      "disk_space": 5120,
      "threads": "0-3"
    },
    "container": {
      "image": "ghcr.io/pterodactyl/yolks:java_17"
    },
    "allocations": {
      "default": {
        "ip": "0.0.0.0",
        "port": 25565
      },
      "mappings": {}
    }
  }
}

Source Reference

Implemented in router/router_server.go:21

Build docs developers (and LLMs) love