Skip to main content
POST
Create Server
Creates a new server on the Wings instance and begins the installation process.

Authentication

Requires the Wings authentication token in the Authorization header:

Request Body

string
required
The UUID of the server to create. Must be a valid UUIDv4 format.
boolean
default:false
Whether to automatically start the server after installation completes.

Response

Returns 202 Accepted to indicate the server creation and installation process has started in the background.

Error Responses

The data provided could not be validated (e.g., invalid UUID format).
An error occurred while creating the server instance.

Behavior

This endpoint:
  1. Validates the provided UUID format
  2. Fetches server configuration from the Panel
  3. Initializes the server instance in Wings
  4. Adds the server to the manager
  5. Begins installation in background:
    • Creates the server environment (Docker container)
    • Runs the installation process
    • Optionally starts the server if start_on_completion is true
Installation runs asynchronously, so errors during installation will be logged but not returned in the API response.

Example Request

Example Response

Notes

  • The server configuration is fetched from the Panel using the provided UUID
  • Installation happens asynchronously in the background
  • Monitor server logs or websocket events to track installation progress
  • If installation fails, the server will remain in an installing state until manually triggered again

Source Reference

Implemented in router/router_system.go:61