curl --request POST \
--url https://api.example.com/api/servers/:server/power \
--header 'Content-Type: application/json' \
--data '
{
"action": "<string>",
"wait_seconds": 123
}
'curl --request POST \
--url https://api.example.com/api/servers/:server/power \
--header 'Content-Type: application/json' \
--data '
{
"action": "<string>",
"wait_seconds": 123
}
'Controls the power state of a server. This endpoint triggers power actions asynchronously and returns immediately.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>
start - Start the serverstop - Stop the server gracefullyrestart - Restart the serverkill - Forcefully terminate the server (SIGKILL)202 Accepted when the power action has been queued for processing.
kill acquire an exclusive lock to prevent concurrent power actionswait_seconds controls how long to wait for the lock (default: 30 seconds)kill action attempts to acquire lock but proceeds even if it failsofflinecurl -X POST https://wings.example.com/api/servers/8d3f9a2e-5c7b-4f1e-9d2a-6e8f1c3b5a7d/power \
-H "Authorization: Bearer your-wings-token" \
-H "Content-Type: application/json" \
-d '{
"action": "start"
}'
curl -X POST https://wings.example.com/api/servers/8d3f9a2e-5c7b-4f1e-9d2a-6e8f1c3b5a7d/power \
-H "Authorization: Bearer your-wings-token" \
-H "Content-Type: application/json" \
-d '{
"action": "restart",
"wait_seconds": 60
}'
curl -X POST https://wings.example.com/api/servers/8d3f9a2e-5c7b-4f1e-9d2a-6e8f1c3b5a7d/power \
-H "Authorization: Bearer your-wings-token" \
-H "Content-Type: application/json" \
-d '{
"action": "kill"
}'
HTTP/1.1 202 Accepted
kill action bypasses most safety checks and should be used sparinglyrouter/router_server.go:53 and server/power.go:56