Pterodactyldocs
Client server

Change power state

Sends a power signal to the server

Signals

SignalDescription
startStarts the server
stopGracefully stops the server
restartStops then starts the server
killInstantly end the server process
POST/api/client/servers/{server}/power

Authorization

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

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/api/client/servers/1a7ce997/power" \  -H "Content-Type: application/json" \  -d '{    "signal": "start"  }'
Empty