Skip to main content
The server endpoints provide access to server information, power management, and real-time console connections.

List Servers

Get all servers the authenticated user has access to.

Response

Get Server Details

Retrieve detailed information about a specific server.
string
required
The server identifier (short UUID)

Response

boolean
Whether the authenticated user owns this server
string
Short UUID identifier for the server
string
Full UUID of the server
string
Server display name
string
Name of the node hosting this server
object
Resource limits for the server (memory in MB, disk in MB, CPU as percentage)
string|null
Current server status: null (ready), installing, suspended, restoring_backup

Get Resource Usage

Retrieve real-time resource utilization for a server.

Response

string
Current power state: running, starting, stopping, offline
integer
Current memory usage in bytes
number
Current CPU usage percentage
integer
Current disk usage in bytes
integer
Server uptime in seconds

Send Power Action

Change the power state of a server.
string
required
Power action to perform:
  • start - Start the server
  • stop - Gracefully stop the server
  • restart - Restart the server
  • kill - Forcefully kill the server process

Response

Returns 204 No Content on success.

Send Console Command

Send a command to the server console.
string
required
The command to execute in the server console

Response

Returns 204 No Content on success.

WebSocket Connection

Get credentials to connect to the server’s WebSocket for real-time console access.

Response

string
JWT token for WebSocket authentication (valid for 10 minutes)
string
WebSocket URL to connect to

WebSocket Usage

Connect to the WebSocket using the provided URL and token:

WebSocket Events

Incoming Events:
  • token expiring - Token will expire soon, request a new one
  • token expired - Token has expired, connection will close
  • status - Server status changed
  • console output - Console log line
  • stats - Resource usage update
  • daemon message - Message from Wings daemon
  • daemon error - Error from Wings daemon
Outgoing Events:
  • auth - Authenticate with JWT token
  • send command - Execute console command
  • set state - Change power state
  • send logs - Request console log history
  • send stats - Request current resource stats

Get Activity Logs

Retrieve activity logs for a server.

Query Parameters

integer
Page number for pagination
integer
Number of results per page (max 100)
string
Sort field (prefix with - for descending)