Welcome to the comprehensive Wings API documentation. Wings is the daemon that runs on each node and manages the actual game servers.
- Getting Started
- Authentication
- System Service
- Server Service
- Docker Service
- Transfer Service
- JWT Service
- Error Handling
- Examples
Wings is the daemon that runs on each node in your Pterodactyl installation. It's responsible for:
- Server Management - Creating, starting, stopping, and managing game servers
- Resource Monitoring - Tracking CPU, memory, and disk usage
- Docker Integration - Managing containers and images
- File Operations - Handling server files and directories
- Network Management - Managing server ports and connections
- Transfer Operations - Moving servers between nodes
<?php
use MythicalSystems\SDK\Pterodactyl\PterodactylSDK;
// Initialize Wings client
$wings = PterodactylSDK::wingsOnly(
'wings.example.com', // Wings host
8080, // Wings port
'https', // Protocol
'node-token-id.node-token-secret' // Wings token
);
// Test connection
if ($wings->testConnection()) {
echo "Connected to Wings successfully!";
}- Get system information and statistics
- Monitor resource usage
- Check Wings and Docker versions
- Create, delete, and manage servers
- Send power commands (start, stop, restart, kill)
- Access server logs and console
- Monitor server resources
- List and manage containers
- Pull and manage Docker images
- Container operations and monitoring
- Transfer servers between nodes
- Monitor transfer progress
- Cancel transfers
- Generate secure tokens for server access
- File access tokens
- Authentication tokens