Get Startup Variables
Retrieve all startup variables for a server.string
required
The server identifier
Response
string
Human-readable variable name
string
Description of what the variable controls
string
Environment variable name (used for updates)
string
Default value from the egg configuration
string
Current value set for this server
boolean
Whether users can modify this variable
string
Laravel validation rules for the variable
Metadata Fields
string
The startup command with variables replaced with actual values
string
The raw startup command template with variable placeholders
object
Available Docker images for the server (read-only via client API)
Update Startup Variable
Update a single startup variable.string
required
The environment variable name (e.g.,
MINECRAFT_VERSION)string
required
The new value for the variable
Response
The updated startup command is returned in the metadata. Most variable changes require a server restart to take effect.
Variable Validation
Variables are validated according to theirrules field. Common validation rules:
required- Value cannot be emptystring- Must be a stringinteger- Must be an integerboolean- Must be true/false or 1/0in:value1,value2- Must be one of the listed valuesmax:n- Maximum length or valuemin:n- Minimum length or valueregex:pattern- Must match regex pattern
Validation Examples
Read-Only Variables
Some variables are marked asis_editable: false. These cannot be modified through the client API:
Common Variables by Game
Minecraft (Java Edition)
Minecraft (Bedrock Edition)
Rust
Valheim
Counter-Strike 2
Startup Command Variables
Variables are used in the startup command template:{{SERVER_MEMORY}}- Memory limit in MB{{SERVER_PORT}}- Primary server port{{SERVER_IP}}- Server IP address- Any custom egg variable (e.g.,
{{MINECRAFT_VERSION}})
