cURL
curl --request GET \ --url https://api.example.com/api/servers
{ "401": {}, "403": {}, "data": [ { "uuid": "<string>", "identifier": "<string>", "name": "<string>", "description": {}, "nodeId": "<string>", "nodeName": "<string>", "status": "<string>", "suspended": true, "ownership": "<string>", "limits": { "cpu": {}, "memory": {}, "disk": {} }, "featureLimits": {}, "primaryAllocation": {}, "isTransferring": true } ], "generatedAt": "<string>" }
Retrieve a list of all servers accessible by the authenticated user
own
all
Show ServerListEntry
offline
starting
running
stopping
stopped
mine
shared
Show Limits
ip:port
curl -X GET "https://panel.example.com/api/servers?scope=own" \ -H "Cookie: session=your-session-token"
{ "data": [ { "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "identifier": "my-server", "name": "My Game Server", "description": "Production Minecraft server", "nodeId": "node-uuid-123", "nodeName": "US-East-1", "status": "running", "suspended": false, "ownership": "mine", "limits": { "cpu": 200, "memory": 4096, "disk": 10240 }, "featureLimits": null, "primaryAllocation": "192.168.1.100:25565", "isTransferring": false } ], "generatedAt": "2024-03-05T12:00:00.000Z" }
scope=all
{ "status": 403, "message": "Forbidden: Admin access required to view all servers" }