Client API: Deployment servers: Servers
The 25 Client API operations for servers.
Part of Deployment servers.
Operations
Section titled Operations| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/client/servers |
List servers owned by or accessible to current user |
| GET | /api/v1/client/servers/live |
State and usage for the servers on the list, one request instead of one per server |
| GET | /api/v1/client/servers/{uuid} |
Get server details |
| GET | /api/v1/client/servers/{uuid}/auto-backups |
Auto backups status |
| PUT | /api/v1/client/servers/{uuid}/auto-backups |
Switch this server's automatic backups on or off, and answer as GET does |
| POST | /api/v1/client/servers/{uuid}/command |
Execute a command on the server |
| GET | /api/v1/client/servers/{uuid}/console |
The newest lines of the server's console, oldest first, without colour codes |
| GET | /api/v1/client/servers/{uuid}/git-token |
Read whether a repository token is set |
| PUT | /api/v1/client/servers/{uuid}/git-token |
Set, replace or remove the repository token |
| POST | /api/v1/client/servers/{uuid}/power |
Execute power action (start, stop, restart, kill) |
| POST | /api/v1/client/servers/{uuid}/redeploy |
Rebuild or redeploy the server's release |
| POST | /api/v1/client/servers/{uuid}/reinstall |
Delete every file on the server and run its software's install again |
| GET | /api/v1/client/servers/{uuid}/resources |
Get server resource usage and limits |
| PATCH | /api/v1/client/servers/{uuid}/settings |
Rename the server, or switch the removal of unused world chunks |
| GET | /api/v1/client/servers/{uuid}/sftp |
Connection details for this server's SFTP login |
| GET | /api/v1/client/servers/{uuid}/sleep |
Sleep and start-queue state for a free server |
| GET | /api/v1/client/servers/{uuid}/sleep-setting |
Whether this server sleeps when nobody is on it, and how long it waits |
| PUT | /api/v1/client/servers/{uuid}/sleep-setting |
Turn sleeping when empty on or off for a server billed by what it uses |
| GET | /api/v1/client/servers/{uuid}/startup-variables |
Every startup variable the server runs with, and what its owner may do with each |
| PATCH | /api/v1/client/servers/{uuid}/startup-variables |
Change, add or remove the server's startup variables |
| GET | /api/v1/client/servers/{uuid}/status-ping |
Ask the game itself who is online |
| PATCH | /api/v1/client/servers/{uuid}/subdomain |
Patch subdomain |
| GET | /api/v1/client/servers/{uuid}/updates |
List the plugins, mods, datapacks and Bedrock packs on the server that have a newer build |
| POST | /api/v1/client/servers/{uuid}/wake |
Ask for a sleeping free server to be started |
| GET | /api/v1/client/servers/{uuid}/websocket |
Get WebSocket token and endpoint for console access |
List servers owned by or accessible to current user
Section titled List servers owned by or accessible to current userGET /api/v1/client/servers
List servers owned by or accessible to current user.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required | Description |
|---|---|---|---|---|
tag |
query | string or null | no | Filter by resource tag |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
A 200 response is a list; each item has these fields:
| Field | Type | Description |
|---|---|---|
[].id |
integer | |
[].uuid |
string | |
[].uuidShort |
string or null | |
[].name |
string | |
[].owner_id |
integer | |
[].service_id |
integer or null | |
[].git |
object or null | |
[].template_uuid |
string or null | |
[].template_name |
string or null | |
[].template_slug |
string or null | |
[].docker_image |
string or null | |
[].startup_command |
string or null | |
[].memory_mb |
integer | |
[].boost_memory_mb |
integer or null | |
[].disk_mb |
integer | |
[].cpu_percent |
integer | |
[].io_weight |
integer or null | |
[].swap_mb |
integer or null | |
[].allocation_limit |
integer or null | |
[].database_limit |
integer or null | |
[].backup_limit |
integer or null | |
[].node_id |
integer or null | |
[].node_name |
string or null | |
[].node_fqdn |
string or null | |
[].owner_email |
string or null | |
[].location |
string or null | |
[].location_id |
integer or null | |
[].location_name |
string or null | |
[].location_country_code |
string or null | |
[].cpu_model |
string or null | |
[].storage_type |
string or null | |
[].network_speed |
string or null | |
[].installed_os |
string or null | |
[].allocation_id |
integer or null | |
[].ip_address |
string or null | |
[].port |
integer or null | |
[].join_address |
string or null | |
[].players_online |
integer or null | |
[].players_direct |
integer or null | |
[].usage |
object or null | |
[].uptime_seconds |
integer or null | |
[].variables |
object or null | |
[].recipe_uuid |
string or null | |
[].specialization_slug |
string or null | |
[].specialization_name |
string or null | |
[].status |
string | |
[].last_error |
string or null | |
[].last_error_at |
string (date-time) or null | |
[].created_at |
string (date-time) | |
[].updated_at |
string (date-time) | |
[].tags |
array of string | |
[].sleep_policy |
string or null | |
[].sleep |
object or null | |
[].entitlements |
array of object or null | |
[].install |
object or null | |
[].power |
object or null | |
[].lock |
object or null | |
[].base_memory_mb |
integer or null | |
[].base_cpu_percent |
integer or null | |
[].base_disk_mb |
integer or null | |
| ... | More fields than this page lists; the interactive reference has them all. |
State and usage for the servers on the list, one request instead of one per server
Section titled State and usage for the servers on the list, one request instead of one per serverGET /api/v1/client/servers/live
State and usage for the servers on the list, one request instead of one per server.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required | Description |
|---|---|---|---|---|
uuids |
query | string or null | no | Comma-separated server UUIDs; default is the newest |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Get server details
Section titled Get server detailsGET /api/v1/client/servers/{uuid}
Get server details.
Besides the server's own fields the answer says what the caller may do on
it. is_owner is true when the caller's account owns the server (a team
member acting for the owner counts as the owner). permissions lists the
keys they hold: ["*"] for the owner, and for an owner or admin of the
organization whose deployment runs the server (is_owner stays false);
for a subuser, the grants they hold on this server. A key can be * or a
category wildcard such as file.*. git says what the server clones
and whether it has releases (GET /client/servers/{uuid}/releases); it
is null for a server that clones nothing.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Fields of a 200 response:
| Field | Type | Description |
|---|---|---|
id |
integer | |
uuid |
string | |
uuidShort |
string or null | |
name |
string | |
owner_id |
integer | |
service_id |
integer or null | |
git |
object or null | |
template_uuid |
string or null | |
template_name |
string or null | |
template_slug |
string or null | |
docker_image |
string or null | |
startup_command |
string or null | |
memory_mb |
integer | |
boost_memory_mb |
integer or null | |
disk_mb |
integer | |
cpu_percent |
integer | |
io_weight |
integer or null | |
swap_mb |
integer or null | |
allocation_limit |
integer or null | |
database_limit |
integer or null | |
backup_limit |
integer or null | |
node_id |
integer or null | |
node_name |
string or null | |
node_fqdn |
string or null | |
owner_email |
string or null | |
location |
string or null | |
location_id |
integer or null | |
location_name |
string or null | |
location_country_code |
string or null | |
cpu_model |
string or null | |
storage_type |
string or null | |
network_speed |
string or null | |
installed_os |
string or null | |
allocation_id |
integer or null | |
ip_address |
string or null | |
port |
integer or null | |
join_address |
string or null | |
players_online |
integer or null | |
players_direct |
integer or null | |
usage |
object or null | |
uptime_seconds |
integer or null | |
variables |
object or null | |
recipe_uuid |
string or null | |
specialization_slug |
string or null | |
specialization_name |
string or null | |
status |
string | |
last_error |
string or null | |
last_error_at |
string (date-time) or null | |
created_at |
string (date-time) | |
updated_at |
string (date-time) | |
tags |
array of string | |
sleep_policy |
string or null | |
sleep |
object or null | |
entitlements |
array of object or null | |
install |
object or null | |
power |
object or null | |
lock |
object or null | |
base_memory_mb |
integer or null | |
base_cpu_percent |
integer or null | |
base_disk_mb |
integer or null | |
| ... | More fields than this page lists; the interactive reference has them all. |
Auto backups status
Section titled Auto backups statusGET /api/v1/client/servers/{uuid}/auto-backups
This server's automatic backups: whether it has them, whether they are on, and the last run.
available is true when the account's plan includes automatic backups
(Pro and up) or the server has the automatic backups add-on; otherwise
reason_unavailable says why, in words for the customer. We take one
snapshot a day (every_hours) and keep the newest keep. They count
against the account's snapshot storage. last_error is why the last
run could not take one, such as full snapshot storage. Subusers need
snapshot.read.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Switch this server's automatic backups on or off, and answer as GET does
Section titled Switch this server's automatic backups on or off, and answer as GET doesPUT /api/v1/client/servers/{uuid}/auto-backups
Switch this server's automatic backups on or off, and answer as GET does.
Answers 409, naming why, when the server has no automatic backups to
switch. Switching them off keeps the backups already taken. Subusers need
snapshot.create.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
enabled |
boolean | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Execute a command on the server
Section titled Execute a command on the serverPOST /api/v1/client/servers/{uuid}/command
Execute a command on the server.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
command |
query | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
The newest lines of the server's console, oldest first, without colour codes
Section titled The newest lines of the server's console, oldest first, without colour codesGET /api/v1/client/servers/{uuid}/console
The newest lines of the server's console, oldest first, without colour codes.
The same read as the Console tab's history, for every game (Bedrock has no
logs/latest.log). Needs control.console on a shared server.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required | Description |
|---|---|---|---|---|
uuid |
path | string | yes | |
lines |
query | integer | no | How many of the newest console lines to return (1 to 200). Default: 100. |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Read whether a repository token is set
Section titled Read whether a repository token is setGET /api/v1/client/servers/{uuid}/git-token
Read whether a repository token is set.
Answers {"git_token_set": true} when the server keeps one. The token
itself is never answered. Needs startup.read.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Set, replace or remove the repository token
Section titled Set, replace or remove the repository tokenPUT /api/v1/client/servers/{uuid}/git-token
Set, replace or remove the repository token.
It is the token the platform reads a private repository with. An empty or
null token removes it.
The token is stored sealed and used only when the platform fetches the repository from the git host. It is never answered, sent to the server or written to a log. Use a token that can only read this repository (on GitHub, a fine-grained token with read access to Contents). It applies from the next release.
Answers {"git_token_set": true}. 422 for a token over 1000 characters
or with a space in it; 409 no_deployment for a server that has no
deployment record yet. Needs startup.update.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required | Description |
|---|---|---|---|
token |
string or null | no | A token that can read the repository. Empty or null removes the one that is set |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Execute power action (start, stop, restart, kill)
Section titled Execute power action (start, stop, restart, kill)POST /api/v1/client/servers/{uuid}/power
Execute power action (start, stop, restart, kill).
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
signal |
string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Rebuild or redeploy the server's release
Section titled Rebuild or redeploy the server's releasePOST /api/v1/client/servers/{uuid}/redeploy
Rebuild or redeploy the server's release.
{"rebuild": false}, the default, is Redeploy: the live release's
stored files are put back as they were committed and the server restarts.
Nothing is fetched. {"rebuild": true} is Rebuild: the newest commit of
the server's branch is fetched again and the software's dependency folders
(git.clean_paths, such as node_modules) are cleared so they install
fresh. A server with no live release fetches either way.
Answers 201 with the new release. 409 archive_not_stored when a
Redeploy finds the live release's files are not kept (use Rebuild), and
the refusals of Deploy. Needs software.update.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
rebuild |
boolean | no | false is Redeploy: the live release's stored files are put back as they were committed and the server restarts, with nothing fetched. true is Rebuild: the newest commit of the server's branch is fetched again and the software's dependency folders are cleared, so they install fresh |
Responses
Section titled Responses| Status | Meaning |
|---|---|
201 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Delete every file on the server and run its software's install again
Section titled Delete every file on the server and run its software's install againPOST /api/v1/client/servers/{uuid}/reinstall
Delete every file on the server and run its software's install again.
confirm_server_name must name the server, in any case, the way every
other wipe is confirmed; a server whose install never finished
(installing or install_failed) has nothing to lose and is not
asked. The name is checked before the rate limit, so a refused request
does not spend the budget. Needs settings.reinstall.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json
| Field | Type | Required |
|---|---|---|
confirm_server_name |
string or null | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Get server resource usage and limits
Section titled Get server resource usage and limitsGET /api/v1/client/servers/{uuid}/resources
Get server resource usage and limits.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Rename the server, or switch the removal of unused world chunks
Section titled Rename the server, or switch the removal of unused world chunksPATCH /api/v1/client/servers/{uuid}/settings
Rename the server, or switch the removal of unused world chunks.
name follows the one rule every intake of a server name uses (2 to 48
characters; letters, numbers, spaces and - _ . ' ! & ( ) [ ] , : +)
and needs settings.rename. world_optimization_enabled needs
settings.reinstall; a free server may switch it on but not off. Answers
the server as GET /{uuid} does.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required | Description |
|---|---|---|---|
name |
string or null | no | 2–48 characters once spaces are collapsed |
world_optimization_enabled |
boolean or null | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Fields of a 200 response:
| Field | Type | Description |
|---|---|---|
id |
integer | |
uuid |
string | |
uuidShort |
string or null | |
name |
string | |
owner_id |
integer | |
service_id |
integer or null | |
git |
object or null | |
template_uuid |
string or null | |
template_name |
string or null | |
template_slug |
string or null | |
docker_image |
string or null | |
startup_command |
string or null | |
memory_mb |
integer | |
boost_memory_mb |
integer or null | |
disk_mb |
integer | |
cpu_percent |
integer | |
io_weight |
integer or null | |
swap_mb |
integer or null | |
allocation_limit |
integer or null | |
database_limit |
integer or null | |
backup_limit |
integer or null | |
node_id |
integer or null | |
node_name |
string or null | |
node_fqdn |
string or null | |
owner_email |
string or null | |
location |
string or null | |
location_id |
integer or null | |
location_name |
string or null | |
location_country_code |
string or null | |
cpu_model |
string or null | |
storage_type |
string or null | |
network_speed |
string or null | |
installed_os |
string or null | |
allocation_id |
integer or null | |
ip_address |
string or null | |
port |
integer or null | |
join_address |
string or null | |
players_online |
integer or null | |
players_direct |
integer or null | |
usage |
object or null | |
uptime_seconds |
integer or null | |
variables |
object or null | |
recipe_uuid |
string or null | |
specialization_slug |
string or null | |
specialization_name |
string or null | |
status |
string | |
last_error |
string or null | |
last_error_at |
string (date-time) or null | |
created_at |
string (date-time) | |
updated_at |
string (date-time) | |
tags |
array of string | |
sleep_policy |
string or null | |
sleep |
object or null | |
entitlements |
array of object or null | |
install |
object or null | |
power |
object or null | |
lock |
object or null | |
base_memory_mb |
integer or null | |
base_cpu_percent |
integer or null | |
base_disk_mb |
integer or null | |
| ... | More fields than this page lists; the interactive reference has them all. |
Connection details for this server's SFTP login
Section titled Connection details for this server's SFTP loginGET /api/v1/client/servers/{uuid}/sftp
Connection details for this server's SFTP login.
Built here rather than in the browser: Wings validates the username's shape before it calls the panel, so a client assembling its own can be rejected on the node with nothing to show for it.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Fields of a 200 response:
| Field | Type |
|---|---|
host |
string |
port |
integer |
username |
string |
Sleep and start-queue state for a free server
Section titled Sleep and start-queue state for a free serverGET /api/v1/client/servers/{uuid}/sleep
Sleep and start-queue state for a free server.
sleeps_at is absolute so a client counts down locally rather than polling
for a ticking number.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Fields of a 200 response:
| Field | Type |
|---|---|
sleep |
Sleep |
entitlements |
array of object |
Whether this server sleeps when nobody is on it, and how long it waits
Section titled Whether this server sleeps when nobody is on it, and how long it waitsGET /api/v1/client/servers/{uuid}/sleep-setting
Whether this server sleeps when nobody is on it, and how long it waits.
A server billed by what it uses can sleep when empty if its owner turns it
on: a sleeping server costs its disk only, and the next player to join wakes
it. available is false for the free server (it always sleeps) and for a
server on a flat price. idle_minutes is the wait, from min_minutes to
max_minutes. Only the account that owns the server reads it.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Turn sleeping when empty on or off for a server billed by what it uses
Section titled Turn sleeping when empty on or off for a server billed by what it usesPUT /api/v1/client/servers/{uuid}/sleep-setting
Turn sleeping when empty on or off for a server billed by what it uses.
enabled turns it on or off. idle_minutes sets how long the server waits
empty before it stops; leave it out to keep the current wait (10 minutes
until you set one). A join wakes the server again, and while it sleeps it
costs its disk only. The answer is the setting, as GET gives it. Answers
409 free_server for the free server, which always sleeps, and 409
not_usage_billed for a server on a flat price, 422 for a wait outside the
limits, and 403 to anyone but the owner.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
enabled |
boolean | yes |
idle_minutes |
integer or null | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Every startup variable the server runs with, and what its owner may do with each
Section titled Every startup variable the server runs with, and what its owner may do with eachGET /api/v1/client/servers/{uuid}/startup-variables
Every startup variable the server runs with, and what its owner may do with each.
variables lists each with value, secret (a password: show it
masked), editable (PATCH .../startup-variables takes it) and
locked (why not, when it does not), managed_by (java,
safe_mode or platform, else null), removable (the server has a
value of its own to remove), default (what applies after removing it,
or null), source (server or default) and rule (what a
declared password must be). game is the game whose settings keep
their checks, or null, and free_plan_rules says the free plan's limits
apply. Needs startup.read.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Change, add or remove the server's startup variables
Section titled Change, add or remove the server's startup variablesPATCH /api/v1/client/servers/{uuid}/startup-variables
Change, add or remove the server's startup variables.
variables sets or adds names (capital letters, digits and _, up to
64, starting with a letter); remove_variables takes names away, so a
name the template defines goes back to its default and a password the
template declares gets a new one. Every value is one line of up to 1,024
characters, and some keep a rule: a declared password is 12 to 128
characters of letters, numbers and _ . @ % + = : , -, starting with a
letter or a number, and a game's own settings keep that game's checks.
400 names the variable for a change the rule refuses: a name the platform
sets when the server starts (SERVER_MEMORY, SERVER_IP,
SERVER_PORT, STARTUP, P_SERVER_*), a name its own setting
manages (the Java heap and flags, safe mode), or, on a free server, the
variable naming the program it runs or a value the shell would read as
more than text. The values apply on the next restart. Needs
startup.update; the server's activity log names the keys, never the
values.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
variables |
Variables | no |
remove_variables |
array of string | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Fields of a 200 response:
| Field | Type | Description |
|---|---|---|
id |
integer | |
uuid |
string | |
uuidShort |
string or null | |
name |
string | |
owner_id |
integer | |
service_id |
integer or null | |
git |
object or null | |
template_uuid |
string or null | |
template_name |
string or null | |
template_slug |
string or null | |
docker_image |
string or null | |
startup_command |
string or null | |
memory_mb |
integer | |
boost_memory_mb |
integer or null | |
disk_mb |
integer | |
cpu_percent |
integer | |
io_weight |
integer or null | |
swap_mb |
integer or null | |
allocation_limit |
integer or null | |
database_limit |
integer or null | |
backup_limit |
integer or null | |
node_id |
integer or null | |
node_name |
string or null | |
node_fqdn |
string or null | |
owner_email |
string or null | |
location |
string or null | |
location_id |
integer or null | |
location_name |
string or null | |
location_country_code |
string or null | |
cpu_model |
string or null | |
storage_type |
string or null | |
network_speed |
string or null | |
installed_os |
string or null | |
allocation_id |
integer or null | |
ip_address |
string or null | |
port |
integer or null | |
join_address |
string or null | |
players_online |
integer or null | |
players_direct |
integer or null | |
usage |
object or null | |
uptime_seconds |
integer or null | |
variables |
object or null | |
recipe_uuid |
string or null | |
specialization_slug |
string or null | |
specialization_name |
string or null | |
status |
string | |
last_error |
string or null | |
last_error_at |
string (date-time) or null | |
created_at |
string (date-time) | |
updated_at |
string (date-time) | |
tags |
array of string | |
sleep_policy |
string or null | |
sleep |
object or null | |
entitlements |
array of object or null | |
install |
object or null | |
power |
object or null | |
lock |
object or null | |
base_memory_mb |
integer or null | |
base_cpu_percent |
integer or null | |
base_disk_mb |
integer or null | |
| ... | More fields than this page lists; the interactive reference has them all. |
Ask the game itself who is online
Section titled Ask the game itself who is onlineGET /api/v1/client/servers/{uuid}/status-ping
Ask the game itself who is online. Best-effort; never fails the request.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Fields of a 200 response:
| Field | Type |
|---|---|
reachable |
boolean |
players_online |
integer or null |
players_max |
integer or null |
sample |
array of string |
version |
string or null |
protocol |
integer or null |
motd |
string or null |
favicon |
string or null |
latency_ms |
integer or null |
Patch subdomain
Section titled Patch subdomainPATCH /api/v1/client/servers/{uuid}/subdomain
Change the first part of the server's join address (survival in
survival.example.gg), on the same domain.
Only a server with a join address has one to change; the others answer 400. The name must be free and allowed; the same name again changes nothing. Proxies stop answering the old name at once. Needs settings.rename.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json (required)
| Field | Type | Required |
|---|---|---|
subdomain |
string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Fields of a 200 response:
| Field | Type | Description |
|---|---|---|
id |
integer | |
uuid |
string | |
uuidShort |
string or null | |
name |
string | |
owner_id |
integer | |
service_id |
integer or null | |
git |
object or null | |
template_uuid |
string or null | |
template_name |
string or null | |
template_slug |
string or null | |
docker_image |
string or null | |
startup_command |
string or null | |
memory_mb |
integer | |
boost_memory_mb |
integer or null | |
disk_mb |
integer | |
cpu_percent |
integer | |
io_weight |
integer or null | |
swap_mb |
integer or null | |
allocation_limit |
integer or null | |
database_limit |
integer or null | |
backup_limit |
integer or null | |
node_id |
integer or null | |
node_name |
string or null | |
node_fqdn |
string or null | |
owner_email |
string or null | |
location |
string or null | |
location_id |
integer or null | |
location_name |
string or null | |
location_country_code |
string or null | |
cpu_model |
string or null | |
storage_type |
string or null | |
network_speed |
string or null | |
installed_os |
string or null | |
allocation_id |
integer or null | |
ip_address |
string or null | |
port |
integer or null | |
join_address |
string or null | |
players_online |
integer or null | |
players_direct |
integer or null | |
usage |
object or null | |
uptime_seconds |
integer or null | |
variables |
object or null | |
recipe_uuid |
string or null | |
specialization_slug |
string or null | |
specialization_name |
string or null | |
status |
string | |
last_error |
string or null | |
last_error_at |
string (date-time) or null | |
created_at |
string (date-time) | |
updated_at |
string (date-time) | |
tags |
array of string | |
sleep_policy |
string or null | |
sleep |
object or null | |
entitlements |
array of object or null | |
install |
object or null | |
power |
object or null | |
lock |
object or null | |
base_memory_mb |
integer or null | |
base_cpu_percent |
integer or null | |
base_disk_mb |
integer or null | |
| ... | More fields than this page lists; the interactive reference has them all. |
List the plugins, mods, datapacks and Bedrock packs on the server that have a newer build
Section titled List the plugins, mods, datapacks and Bedrock packs on the server that have a newer buildGET /api/v1/client/servers/{uuid}/updates
List the plugins, mods, datapacks and Bedrock packs on the server that have a newer build.
Each entry carries record_uuid, kind (plugin, mod, datapack,
bedrock_addon or bedrock_resource_pack), source_uuid, identifier,
display_name, current_version, latest_version and latest. Server
software and modpacks are not listed, and nor is a file whose kind we
cannot tell. To install an entry, send POST .../software/install with its
source_uuid, identifier, kind and latest_version as version, or
POST .../software/{record_uuid}/update.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Ask for a sleeping free server to be started
Section titled Ask for a sleeping free server to be startedPOST /api/v1/client/servers/{uuid}/wake
Ask for a sleeping free server to be started.
First in line with headroom starts in this request so the customer is not left waiting on a worker poll. Otherwise the row stays queued and a tick job releases it when the node has room.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Request body
Section titled Request bodyapplication/json
| Field | Type | Required |
|---|---|---|
turnstile_token |
string or null | no |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Get WebSocket token and endpoint for console access
Section titled Get WebSocket token and endpoint for console accessGET /api/v1/client/servers/{uuid}/websocket
Warning
Deprecated. It still answers, but new code should not use it.
Get WebSocket token and endpoint for console access.
Authentication: an access token, sent as Authorization: Bearer <token>.
Parameters
Section titled Parameters| Name | In | Type | Required |
|---|---|---|---|
uuid |
path | string | yes |
Responses
Section titled Responses| Status | Meaning |
|---|---|
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
Fields of a 200 response:
| Field | Type |
|---|---|
token |
string |
socket |
string |