6767
Base URL
Endpoint tiers
The API splits its routes into two tiers:- Public read endpoints — all
GETroutes. No authentication required. Safe to call from any client. - Secured write endpoints — all
POSTroutes. Require anX-API-Keyheader carrying your configured secret key.
Endpoint map
Read endpoints (public)
| Method | Route | Description |
|---|---|---|
GET | / | Plain text servreport output |
GET | /api | Endpoint index and API version |
GET | /api/status | Online/offline status, version, uptime, memory |
GET | /api/players/online | List of currently online players |
GET | /api/players/whitelist | Full whitelist |
GET | /api/logs/latest?lines=200 | Latest server log (adjustable line count) |
GET | /api/logs/snapshot?lines=200 | Snapshot cron log |
GET | /api/backups | All backups listed with size and type |
GET | /api/properties | server.properties as JSON |
GET | /api/report | servreport as JSON |
Write endpoints (secured — require X-API-Key)
| Method | Route | Description |
|---|---|---|
POST | /api/server/start | Start the Minecraft server |
POST | /api/server/stop | Stop the Minecraft server |
POST | /api/server/restart | Restart the Minecraft server |
POST | /api/command | Send a console command (body: {"command": "say hello"}) |
POST | /api/whitelist/add | Add player to whitelist (body: {"player": "username"}) |
POST | /api/whitelist/remove | Remove player from whitelist (body: {"player": "username"}) |
POST | /api/backup | Trigger a silent background backup |
Get started
Installation
Copy the files, generate an API key, and start the systemd service.
Authentication
Learn how to pass your API key and handle auth errors.