Server
Change power state
Sends a power signal to the server
Signals
| Signal | Description |
|---|---|
| start | Starts the server |
| stop | Gracefully stops the server |
| restart | Stops then starts the server |
| kill | Instantly end the server process |
POST
/api/client/servers/{server}/powerAuthorization
ClientToken AuthorizationBearer <token>
Client API key (generated at /account/api)
In: header
Path Parameters
server*string
Server identifier (short 8-character ID)
Request Body
application/json
signal*string
Value in
"start" | "stop" | "restart" | "kill"Response Body
curl -X POST "https://pterodactyl.file.properties/api/client/servers/1a7ce997/power" \ -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "signal": "start"}'Empty