curl --request POST \
--url https://api.example.com/api/servers/:server/commands \
--header 'Content-Type: application/json' \
--data '
{
"commands": [
{}
]
}
'curl --request POST \
--url https://api.example.com/api/servers/:server/commands \
--header 'Content-Type: application/json' \
--data '
{
"commands": [
{}
]
}
'Sends one or more commands to a running server instance.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>
204 No Content when commands have been sent successfully.
curl -X POST https://wings.example.com/api/servers/8d3f9a2e-5c7b-4f1e-9d2a-6e8f1c3b5a7d/commands \
-H "Authorization: Bearer your-wings-token" \
-H "Content-Type: application/json" \
-d '{
"commands": [
"say Server maintenance in 5 minutes",
"save-all",
"whitelist add PlayerName"
]
}'
HTTP/1.1 204 No Content
router/router_server.go:108