-
Couldn't load subscription status.
- Fork 0
API
This documentation provides a comprehensive overview of the Game Server API endpoints for server management, authentication, configuration, and monitoring.
- Authentication
- Server Management
- Configuration
- Backups
- Custom Detections
- Real-time Events (SSE)
- Postman Collections
Some endpoints use GET even though other types might be more adequate. This will be addressed.
Authentication is required for most API endpoints. Use the login endpoint to obtain an authentication token.
| Endpoint | Method | Description |
|---|---|---|
/auth/login |
POST | Authenticate and obtain an access token |
{
"username": "admin",
"password": "password"
}Important
If auth is enabled, an access token cookie is required for most API endpoints. Only the login endpoint is public. Use the >login endpoint to obtain an authentication token. If auth is disabled, the Middleware skip the cookie check and the whole API will be public.
| Endpoint | Method | Description |
|---|---|---|
/auth/login |
POST | Authenticate and obtain an access token cookie |
{
"username": "admin",
"password": "password"
}Control the game server status with these endpoints.
| Endpoint | Method | Description |
|---|---|---|
/api/v2/server/start |
GET | Start the game server |
/api/v2/server/stop |
GET | Stop the game server |
/api/v2/server/status |
GET | Gets the server status in a structured Json format |
/start |
GET | (Legacy) Start the game server |
/stop |
GET | (Legacy) Stop the game server |
/ |
GET | Access the server's HTML interface |
Manage server configuration settings through this API.
| Endpoint | Method | Description |
|---|---|---|
/setup |
Access the setup wizard HTML interface | |
/saveconfigasjson |
POST form data | (Legacy) Update and save server configuration |
/api/v2/saveconfig |
POST JSON | Update and save server configuration |
none |
none | There is NO endpoint to GET the current config |
Important
The /saveconfigasjson endpoint only allows config values present on the config page. (Technically it allows any sting value, but just use the /api/v2/saveconfig endpoint please
See Configuration
Manage server backups with these endpoints.
| Endpoint | Method | Description |
|---|---|---|
/api/v2/backups |
GET | Get a list of all available backups |
/api/v2/backups/restore |
GET | Restore a specific backup |
/backups |
GET | (Legacy) Get a list of all available backups |
/backups/restore |
GET | (Legacy) Restore a specific backup |
| Parameter | Description | Example |
|---|---|---|
index |
Index of the backup to restore | 7 |
Create and manage custom event detections for server monitoring.
| Endpoint | Method | Description |
|---|---|---|
/api/v2/custom-detections |
GET | Get all custom detections |
/api/v2/custom-detections |
POST | Create a new custom detection |
/api/v2/custom-detections/delete/ |
DELETE | Delete a custom detection |
Triggers when an exact string is found in logs or events.
{
"type": "keyword",
"pattern": "UnloadTime",
"eventType": "CUSTOM_DETECTION",
"message": "UnloadTime found"
}Uses regular expressions to match patterns and capture groups.
{
"type": "regex",
"pattern": "Player (.+) has reached level (\\d+)",
"eventType": "CUSTOM_DETECTION",
"message": "Player {1} reached level {2}!"
}Do NOT use another event type!
| Parameter | Description | Example |
|---|---|---|
id |
UUID of the detection to delete | bd923b8c-f773-42ca-baee-e35084e3b989 |
Monitor server events in real-time using Server-Sent Events.
| Endpoint | Method | Description |
|---|---|---|
/console |
GET | Stream server console output |
/events |
GET | Stream server events |
| Code | Description |
|---|---|
| 200 | Success |
| 303 | See Other (after successful configuration) |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |
| 405 | Method Not Allowed |
| 500 | Internal Server Error |
Here you can download Postman collections for all API Endpoints.
- All endpoints require an authentication Cookie obtained through the login endpoint
- The server can be managed both through the API and the web interface
- Custom detections support both simple keyword matching and complex regex patterns
- Real-time monitoring is available through SSE endpoints