Performs a health check on the Dedicated Server API. Allows passing additional data between Modded Dedicated Server and Modded Game Client. This function requires no Authentication.
function required | string Default: "HealthCheck" Name of the API function to execute. Value: "HealthCheck" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "HealthCheck",
- "data": {
- "clientCustomData": "string"
}
}
{- "data": {
- "health": "healthy",
- "serverCustomData": "string"
}
}
Verifies the Authentication token provided to the Dedicated Server API. Returns No Content if the provided token is valid. This function does not require input parameters and does not return any data.
function required | string Default: "VerifyAuthenticationToken" Name of the API function to execute. Value: "VerifyAuthenticationToken" |
{- "function": "VerifyAuthenticationToken"
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Attempts to perform a passwordless login to the Dedicated Server as a player. Passwordless login is possible if the Dedicated Server is not claimed, or if Client Protection Password is not set for the Dedicated Server. This function requires no Authentication.
function required | string Default: "PasswordlessLogin" Name of the API function to execute. Value: "PasswordlessLogin" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "PasswordlessLogin",
- "data": {
- "minimumPrivilegeLevel": "NotAuthenticated"
}
}
{- "data": {
- "authenticationToken": "string"
}
}
Attempts to log in to the Dedicated Server as a player using either Admin Password or Client Protection Password. This function requires no Authentication.
function required | string Default: "PasswordLogin" Name of the API function to execute. Value: "PasswordLogin" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "PasswordLogin",
- "data": {
- "minimumPrivilegeLevel": "NotAuthenticated",
- "password": "super-secret-password"
}
}
{- "data": {
- "authenticationToken": "string"
}
}
Retrieves the current state of the Dedicated Server. Does not require any input parameters.
function required | string Default: "QueryServerState" Name of the API function to execute. Value: "QueryServerState" |
{- "function": "QueryServerState"
}
{- "data": {
- "serverGameState": {
- "activeSessionName": "SERVER-SESSION26924571",
- "numConnectedPlayers": 0,
- "playerLimit": 4,
- "techTier": 0,
- "activeSchematic": "None",
- "gamePhase": "None",
- "isGameRunning": false,
- "totalGameDuration": 0,
- "isGamePaused": false,
- "averageTickRate": 29.89044189453125,
- "autoLoadSessionName": "SERVER-SESSION26924571"
}
}
}
Retrieves currently applied server options and server options that are still pending application (because of needing session or server restart) Does not require input parameters.
function required | string Default: "GetServerOptions" Name of the API function to execute. Value: "GetServerOptions" |
{- "function": "GetServerOptions"
}
{- "data": {
- "serverOptions": {
- "FG.DSAutoPause": "True",
- "FG.DSAutoSaveOnDisconnect": "True",
- "FG.DisableSeasonalEvents": "False",
- "FG.AutosaveInterval": "300.0",
- "FG.ServerRestartTimeSlot": "1440.0",
- "FG.SendGameplayData": "True",
- "FG.NetworkQuality": "1"
}, - "pendingServerOptions": {
- "FG.DSAutoPause": "True",
- "FG.DSAutoSaveOnDisconnect": "True",
- "FG.DisableSeasonalEvents": "False",
- "FG.AutosaveInterval": "300.0",
- "FG.ServerRestartTimeSlot": "1440.0",
- "FG.SendGameplayData": "True",
- "FG.NetworkQuality": "1"
}
}
}
Retrieves currently applied advanced game settings. Does not require input parameters.
function required | string Default: "GetAdvancedGameSettings" Name of the API function to execute. Value: "GetAdvancedGameSettings" |
{- "function": "GetAdvancedGameSettings"
}
{- "data": {
- "appliedAdvancedGameSettings": {
- "FG.GameRules.NoPower": "False",
- "FG.GameRules.StartingTier": "0",
- "FG.GameRules.DisableArachnidCreatures": "False",
- "FG.GameRules.NoUnlockCost": "False",
- "FG.GameRules.SetGamePhase": "0",
- "FG.GameRules.UnlockAllResearchSchematics": "False",
- "FG.GameRules.UnlockInstantAltRecipes": "False",
- "FG.GameRules.UnlockAllResourceSinkSchematics": "False",
- "FG.PlayerRules.NoBuildCost": "False",
- "FG.PlayerRules.GodMode": "False",
- "FG.PlayerRules.FlightMode": "False"
}
}
}
Applies new values to the provided Advanced Game Settings properties. Will automatically enable Advanced Game Settings for the currently loaded save if they are not enabled already.
function required | string Default: "ApplyAdvancedGameSettings" Name of the API function to execute. Value: "ApplyAdvancedGameSettings" |
required | object (advancedGameSettings) Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "ApplyAdvancedGameSettings",
- "data": {
- "appliedAdvancedGameSettings": {
- "FG.GameRules.NoPower": "False",
- "FG.GameRules.StartingTier": "0",
- "FG.GameRules.DisableArachnidCreatures": "False",
- "FG.GameRules.NoUnlockCost": "False",
- "FG.GameRules.SetGamePhase": "0",
- "FG.GameRules.UnlockAllResearchSchematics": "False",
- "FG.GameRules.UnlockInstantAltRecipes": "False",
- "FG.GameRules.UnlockAllResourceSinkSchematics": "False",
- "FG.PlayerRules.NoBuildCost": "False",
- "FG.PlayerRules.GodMode": "False",
- "FG.PlayerRules.FlightMode": "False"
}
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Claims this Dedicated Server if it is not claimed. Requires InitialAdmin privilege level, which can only be acquired by attempting passwordless login while the server does not have an Admin Password set, e.g. it is not claimed yet. Function does not return any data in case of success, and the server is claimed. The client should drop InitialAdmin privileges after that and use returned AuthenticationToken instead, and update it's cached server game state by calling QueryServerState.
function required | string Default: "ClaimServer" Name of the API function to execute. Value: "ClaimServer" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "ClaimServer",
- "data": {
- "serverName": "Test Server",
- "adminPassword": "super-secret-password"
}
}
{- "data": {
- "authenticationToken": "string"
}
}
Renames the Dedicated Server once it has been claimed. Requires Admin privileges. Function does not return any data on success.
function required | string Default: "RenameServer" Name of the API function to execute. Value: "RenameServer" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "RenameServer",
- "data": {
- "serverName": "Not Test Server"
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Updates the currently set Client Protection Password. This will invalidate all previously issued Client authentication tokens. Pass empty string to remove the password, and let anyone join the server as Client. Requres Admin privileges. Function does not return any data on success.
function required | string Default: "SetClientPassword" Name of the API function to execute. Value: "SetClientPassword" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "SetClientPassword",
- "data": {
- "password": "password-used-to-play-on-the-server"
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Updates the currently set Admin Password. This will invalidate all previously issued Client and Admin authentication tokens. Requires Admin privileges. Function does not return any data on success.
function required | string Default: "SetAdminPassword" Name of the API function to execute. Value: "SetAdminPassword" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "SetAdminPassword",
- "data": {
- "password": "super-secret-password"
}
}
{- "data": {
- "authenticationToken": "string"
}
}
Updates the name of the session that the Dedicated Server will automatically load on startup. Does not change currently loaded session. Requires Admin privileges. Function does not return any data on success.
function required | string Default: "SetAutoLoadSessionName" Name of the API function to execute. Value: "SetAutoLoadSessionName" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "SetAutoLoadSessionName",
- "data": {
- "sessionName": "Test"
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Runs the given Console Command on the Dedicated Server, and returns it's output to the Console. Requires Admin privileges.
function required | string Default: "RunCommand" Name of the API function to execute. Value: "RunCommand" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "RunCommand",
- "data": {
- "command": "string"
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Shuts down the Dedicated Server. If automatic restart script is setup, this allows restarting the server to apply new settings or update. Requires Admin privileges. Shutdowns initiated by remote hosts are logged with their IP and their token. Function does not return any data on success, and does not take any parameters.
function required | string Default: "Shutdown" Name of the API function to execute. Value: "Shutdown" |
{- "function": "Shutdown"
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Applies new Server Options to the Dedicated Server. Requires Admin privileges.
function required | string Default: "ApplyServerOptions" Name of the API function to execute. Value: "ApplyServerOptions" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "ApplyServerOptions",
- "data": {
- "updatedServerOptions": {
- "FG.DSAutoPause": "True",
- "FG.DSAutoSaveOnDisconnect": "True",
- "FG.DisableSeasonalEvents": "False",
- "FG.AutosaveInterval": "300.0",
- "FG.ServerRestartTimeSlot": "1440.0",
- "FG.SendGameplayData": "True",
- "FG.NetworkQuality": "1"
}
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Creates a new session on the Dedicated Server, and immediately loads it. HTTPS API becomes temporarily unavailable when map loading is in progress | Function does not return any data on success.
function required | string Default: "CreateNewGame" Name of the API function to execute. Value: "CreateNewGame" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "CreateNewGame",
- "data": {
- "newGameData": {
- "sessionName": "Test",
- "mapName": "",
- "startingLocation": "",
- "bSkipOnboarding": false,
- "advancedGameSettings": {
- "appliedAdvancedGameSettings": {
- "FG.GameRules.NoPower": "False",
- "FG.GameRules.StartingTier": "0",
- "FG.GameRules.DisableArachnidCreatures": "False",
- "FG.GameRules.NoUnlockCost": "False",
- "FG.GameRules.SetGamePhase": "0",
- "FG.GameRules.UnlockAllResearchSchematics": "False",
- "FG.GameRules.UnlockInstantAltRecipes": "False",
- "FG.GameRules.UnlockAllResourceSinkSchematics": "False",
- "FG.PlayerRules.NoBuildCost": "False",
- "FG.PlayerRules.GodMode": "False",
- "FG.PlayerRules.FlightMode": "False"
}
}, - "customOptionsOnlyForModding": { }
}
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Saves the currently loaded session into the new save game file named as the argument. Requires Admin privileges. SaveName might be changed to satisfy file system restrictions on file names. Function does not return any data on success.
function required | string Default: "SaveGame" Name of the API function to execute. Value: "SaveGame" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "SaveGame",
- "data": {
- "saveName": "Test Save 1"
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Deletes the existing save game file from the server. Requires Admin privileges. SaveName might be changed to satisfy file system restrictions on file names. Function does not return any data on success.
function required | string Default: "DeleteSaveFile" Name of the API function to execute. Value: "DeleteSaveFile" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "DeleteSaveFile",
- "data": {
- "saveName": "Test Save 1"
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Deletes all save files belonging to the specific session name. Requires Admin privileges. SessionName must be a valid session name with at least one saved save game file belonging to it. Function does not return any data on success.
function required | string Default: "DeleteSaveSession" Name of the API function to execute. Value: "DeleteSaveSession" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "DeleteSaveSession",
- "data": {
- "sessionName": "Test"
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Enumerates all save game files available on the Dedicated Server. Requires Admin privileges. Function does not require any additional parameters.
function required | string Default: "EnumerateSessions" Name of the API function to execute. Value: "EnumerateSessions" |
{- "function": "EnumerateSessions"
}
{- "data": {
- "sessions": [
- {
- "sessionName": "Test",
- "saveHeaders": [
- {
- "saveVersion": 46,
- "buildVersion": 368883,
- "saveName": "Test_autosave_0",
- "saveLocationInfo": "SLI_Server",
- "mapName": "Persistent_Level",
- "mapOptions": "?skiponboarding",
- "sessionName": "Test",
- "playDurationSeconds": 30,
- "saveDateTime": "2024.09.28-04.00.32",
- "isModdedSave": false,
- "isEditedSave": false,
- "isCreativeModeEnabled": false
}
]
}
], - "currentSessionIndex": 0
}
}
Loads the save game file by name, optionally with Advanced Game Settings enabled. Requires Admin privileges. Dedicated Server HTTPS API will become temporarily unavailable when save game is being loaded. Function does not return any data on succcess.
function required | string Default: "LoadGame" Name of the API function to execute. Value: "LoadGame" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "LoadGame",
- "data": {
- "saveName": "Test Save 1",
- "enableAdvancedGameSettings": false
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Shuts down the Dedicated Server. If automatic restart script is setup, this allows restarting the server to apply new settings or update. Requires Admin privileges. Shutdowns initiated by remote hosts are logged with their IP and their token. Function does not return any data on success, and does not take any parameters.
required | object Standard Request Data body for this request, encoded as UTF-8 JSON. Note that this includes the envelope. |
saveGameFile required | string <binary> File attachment containing the save game file. Contents of the file will be validated on the server. |
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}
Downloads save game with the given name from the Dedicated Server. Requires Admin privileges. This function responds with the file attachment containing the save game file on success, and with normal error response in case of error.
function required | string Default: "DownloadSaveGame" Name of the API function to execute. Value: "DownloadSaveGame" |
required | object Data to pass to the function to execute. Format of the object depends on the function being executed |
{- "function": "DownloadSaveGame",
- "data": {
- "saveName": "Test Save 1"
}
}
{- "errorCode": "string",
- "errorMessage": "string",
- "errorData": { }
}