Game Servers

Game servers are managed game-hosting instances associated with a guild and the current user's subscription.

Game Server Object

A game server is a provisioned game-hosting instance.

Game Server Structure
FieldTypeDescription
idstringThe ID of the game server
namestringThe name of the game server
region_idstringThe ID of the server region
region_namestringThe name of the server region
sku_idsnowflakeThe ID of the game-server plan SKU
plan_namestringThe name of the game-server plan
players_count?integerThe number of connected players (default 0)
max_players_countintegerThe maximum number of connected players
ipstringThe server's IP address
portstringThe server's port
entitlement_idsnowflakeThe ID of the entitlement for the server
subscription_idsnowflakeThe ID of the subscription for the server
provider_typestringThe game-server provider
provider_urlstringThe URL of the provider's management panel
statusstringThe status of the game server
game_idsnowflakeThe ID of the game application
game_config?objectProvider-specific game configuration
Example Game Server
{
"id": "srv_8b537cd61f1d",
"name": "Community Survival",
"region_id": "us-east",
"region_name": "US East",
"sku_id": "1484189274013384704",
"plan_name": "Starter",
"players_count": 3,
"max_players_count": 20,
"ip": "203.0.113.42",
"port": "25565",
"entitlement_id": "1484190046798852096",
"subscription_id": "1484190524808634368",
"provider_type": "shockbyte",
"provider_url": "https://example.com/servers/srv_8b537cd61f1d",
"status": "online",
"game_id": "1484188636179095552",
"game_config": {}
}
Game Server Status
ValueDescription
startingThe server is starting
startup_failedThe server failed to start
missing_stockThe provider has no available capacity
sleepingThe server is sleeping
offlineThe server is offline
onlineThe server is online
deletedThe server was deleted
provider_erroredThe provider returned an error

Game Server Region Object

A game server region is a provider location where a server can be created.

Game Server Region Structure
FieldTypeDescription
idstringThe ID of the region
namestringThe name of the region
country_codestringThe region's country code
ping_urlstringThe URL used to measure latency
enabledbooleanWhether servers can be created there

Endpoints

List Guild Game Servers

GET/guilds/{guild.id}/game-servers

Returns a list of game server objects for the guild.

List Guild Game Server Regions

GET/guilds/{guild.id}/game-server-regions

Returns a list of game server region objects available to the guild.

List Current User Game Server Regions

GET/users/@me/game-server-regions

Returns the game-server regions and creation availability for the current user.

Response Body
FieldTypeDescription
regionsarray[game server region object]The available game-server regions
creation_disabledbooleanWhether the current user cannot create a server

List Current User Game Servers

GET/users/@me/game-servers

Returns the current user's game servers and server limit.

Response Body
FieldTypeDescription
game_serversarray[game server object]The current user's game servers
max_game_serversintegerThe maximum number of game servers allowed

Modify Current User Game Server

PATCH/users/@me/game-servers/{game_server.id}

Modifies the name of a game server.

JSON Params
FieldTypeDescription
namestringThe name of the game server

Wake Current User Game Server

POST/users/@me/game-servers/{game_server.id}/wake

Wakes a sleeping game server. Returns the updated game server object on success.

Wake Guild Game Server

POST/guilds/{guild.id}/game-servers/{game_server.id}/wake

Wakes a sleeping game server for the guild. Returns the updated game server object on success.