Skip to content

Game server power control endpoints

These endpoints let you send power actions for customer-scoped game servers. They use API key authentication and only operate on server IDs that are scoped to that key. Use these endpoints when you need to start, stop, restart, or kill a game server from an external integration.

Base path

All endpoints in this page use:

text
/v1/hosting/game/power/{server_id}

{server_id} is the game server ID shown in your HEO Systems dashboard or returned by an authorized integration workflow.

Authentication

Send an API key in the Authorization header.

text
Authorization: Bearer <api_key>

Revoked API keys are rejected.

POST /v1/hosting/game/power/{server_id}/start

This endpoint requests a start action for the game server.

Success response (200 OK)

json
{
  "success": true,
  "action": "start",
  "server_id": "srv_123",
  "status": "requested",
  "message": "Start action sent"
}

POST /v1/hosting/game/power/{server_id}/stop

This endpoint requests a stop action for the game server.

Success response (200 OK)

json
{
  "success": true,
  "action": "stop",
  "server_id": "srv_123",
  "status": "requested",
  "message": "Stop action sent"
}

POST /v1/hosting/game/power/{server_id}/restart

This endpoint requests a restart action for the game server.

Success response (200 OK)

json
{
  "success": true,
  "action": "restart",
  "server_id": "srv_123",
  "status": "requested",
  "message": "Restart action sent"
}

POST /v1/hosting/game/power/{server_id}/kill

This endpoint requests a forced kill action for the game server.

Kill requires confirmation with force=true, either as a query parameter or in a JSON request body.

Example with query confirmation

bash
curl -sS -X POST \
  "https://api.heo-systems.net/v1/hosting/game/power/srv_123/kill?force=true" \
  -H "Authorization: Bearer <api_key>"

Confirmation required response (400 Bad Request)

json
{
  "success": false,
  "error": "confirmation_required",
  "message": "Kill requires force=true"
}

Common error responses

These endpoints can return:

codeerrormessage
400confirmation_requiredKill requires force=true
401unauthorizedMissing, invalid, or revoked API key
403forbiddenYou do not have access to this game server
403insufficient_scopeThis API key only has read scope
404not_foundEndpoint not found
405method_not_allowedMethod not allowed
429N/AToo many requests
502provider_errorFailed to send action

Operational notes

Power actions are request-based. A successful response means the API accepted the request. The game server may take additional time to reach the requested state.