curl --request POST \
--url https://api.example.com/api/client/servers/:server/power \
--header 'Content-Type: application/json' \
--data '
{
"action": "<string>"
}
'{
"400": {},
"403": {},
"404": {},
"500": {},
"503": {},
"data": {
"success": true,
"message": "<string>"
}
}Control server power state (start, stop, restart, kill)
curl --request POST \
--url https://api.example.com/api/client/servers/:server/power \
--header 'Content-Type: application/json' \
--data '
{
"action": "<string>"
}
'{
"400": {},
"403": {},
"404": {},
"500": {},
"503": {},
"data": {
"success": true,
"message": "<string>"
}
}Sends a power action command to the server. This endpoint communicates with the Wings daemon to control the server’s running state.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xyrapanel/panel/llms.txt
Use this file to discover all available pages before exploring further.
server.power permission on the specified server.
start - Start the server if it’s stoppedstop - Gracefully stop the serverrestart - Restart the server (graceful stop followed by start)kill - Forcefully terminate the server processcurl -X POST "https://panel.example.com/api/client/servers/my-server/power" \
-H "Cookie: session=your-session-token" \
-H "Content-Type: application/json" \
-d '{
"action": "start"
}'
{
"data": {
"success": true,
"message": "Power action start sent successfully"
}
}
kill action terminates the server process immediately without giving it time to save data. This may result in data loss or corruption. Use with caution.{
"status": 400,
"message": "Invalid power action. Must be one of: start, stop, restart, kill"
}
server.power permission or Wings authentication failed{
"status": 403,
"message": "Wings authentication failed: Invalid token"
}
{
"status": 503,
"message": "Wings daemon unavailable: Connection timeout"
}
{
"status": 500,
"message": "Failed to send power action to Wings: Unknown error"
}
server.power.start)