Game Servers
Get the associated console for a game server.
Retrieves the console associated with a game server in the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
unknownThe connection state is not known. This value is typically used as a default or uninitialized state.
disconnectedNo connection is open to the console.
connectingA runner is in the middle of establishing the connection.
connectedThe connection is open and commands can be run.
backoffThe last connection attempt failed and the runner is waiting before trying again.
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
unknownNo console type specified. This value is typically used as a default or uninitialized state.
rustThe WebSocket RCON console of a Rust server.
updated_byActorDtoOptionalRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.gameServers.getGameServerConsole("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console", headers=headers){
"assigned_runner_id": "string",
"connection_status": "unknown",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"enabled": true,
"game_server_id": "411486491630370816",
"host": "string",
"port": 0,
"secure": true,
"store_id": "411486491630370816",
"type": "unknown",
"last_heartbeat_at": "2024-01-01T00:00:00Z",
"password": "string",
"updated_at": "2024-01-01T00:00:00Z",
"updated_by": {
"id": "411486491630370816",
"type": "anonymous"
}
}Create a console for a game server.
Creates a new console for a game server in the specified store.
Authorization: APIKey TOKEN.unknownNo console type specified. This value is typically used as a default or uninitialized state.
rustThe WebSocket RCON console of a Rust server.
Show fieldsHide fields
unknownThe connection state is not known. This value is typically used as a default or uninitialized state.
disconnectedNo connection is open to the console.
connectingA runner is in the middle of establishing the connection.
connectedThe connection is open and commands can be run.
backoffThe last connection attempt failed and the runner is waiting before trying again.
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
unknownNo console type specified. This value is typically used as a default or uninitialized state.
rustThe WebSocket RCON console of a Rust server.
updated_byActorDtoOptionalRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"host": "string",
"port": 0,
"secure": true,
"type": "unknown",
"password": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.gameServers.createGameServerConsole("411486491630370816", {
enabled: true,
host: "string",
port: 0,
secure: true,
type: "unknown",
password: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"enabled": True,
"host": "string",
"port": 0,
"secure": True,
"type": "unknown",
"password": "string",
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console", headers=headers, json=payload){
"assigned_runner_id": "string",
"connection_status": "unknown",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"enabled": true,
"game_server_id": "411486491630370816",
"host": "string",
"port": 0,
"secure": true,
"store_id": "411486491630370816",
"type": "unknown",
"last_heartbeat_at": "2024-01-01T00:00:00Z",
"password": "string",
"updated_at": "2024-01-01T00:00:00Z",
"updated_by": {
"id": "411486491630370816",
"type": "anonymous"
}
}Update a console for a game server.
Performs a delta update of the console for a game server in the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
unknownThe connection state is not known. This value is typically used as a default or uninitialized state.
disconnectedNo connection is open to the console.
connectingA runner is in the middle of establishing the connection.
connectedThe connection is open and commands can be run.
backoffThe last connection attempt failed and the runner is waiting before trying again.
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
unknownNo console type specified. This value is typically used as a default or uninitialized state.
rustThe WebSocket RCON console of a Rust server.
updated_byActorDtoOptionalRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"host": "string",
"password": "string",
"port": 0,
"secure": true
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.gameServers.updateGameServerConsole("411486491630370816", {
enabled: true,
host: "string",
password: "string",
port: 0,
secure: true,
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"enabled": True,
"host": "string",
"password": "string",
"port": 0,
"secure": True,
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console", headers=headers, json=payload){
"assigned_runner_id": "string",
"connection_status": "unknown",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"enabled": true,
"game_server_id": "411486491630370816",
"host": "string",
"port": 0,
"secure": true,
"store_id": "411486491630370816",
"type": "unknown",
"last_heartbeat_at": "2024-01-01T00:00:00Z",
"password": "string",
"updated_at": "2024-01-01T00:00:00Z",
"updated_by": {
"id": "411486491630370816",
"type": "anonymous"
}
}Delete an associated game server console.
Deletes the console associated with a game server in the specified store.
Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.gameServers.deleteGameServerConsole("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console", headers=headers)Get console messages for a game server.
Retrieves recent console messages for a game server in the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
unknownoutputcommandresponsesystem
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console/messages" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.gameServers.getGameServerConsoleMessages("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/console/messages", headers=headers)[
{
"message": "string",
"time": "2024-01-01T00:00:00Z",
"type": "unknown"
}
]Get Game Servers for a store
Retrieves all game servers for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
linked_toGameServerLinkDtoRequired
updated_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/gameservers" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.gameServers.getGameServers();import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/gameservers", headers=headers)[
{
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"enabled": true,
"linked_to": {
"hostname": "string",
"ip": "string",
"platform": "string",
"saved_at": "2024-01-01T00:00:00Z",
"version": "string",
"last_fetched_commands_at": "2024-01-01T00:00:00Z",
"last_fetched_commands_from_ip": "string"
},
"name": "string",
"store_id": "411486491630370816",
"updated_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"token": "string",
"token_reset_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
]Create a new Game Server for a store
Creates a new game server in the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
linked_toGameServerLinkDtoRequired
updated_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/gameservers" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"name": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.gameServers.createGameServer({
enabled: true,
name: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"enabled": True,
"name": "string",
}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/gameservers", headers=headers, json=payload){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"enabled": true,
"linked_to": {
"hostname": "string",
"ip": "string",
"platform": "string",
"saved_at": "2024-01-01T00:00:00Z",
"version": "string",
"last_fetched_commands_at": "2024-01-01T00:00:00Z",
"last_fetched_commands_from_ip": "string"
},
"name": "string",
"store_id": "411486491630370816",
"updated_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"token": "string",
"token_reset_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}Get a Game Server by ID for a store
Retrieves a game server by the ID for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
linked_toGameServerLinkDtoRequired
updated_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X GET "https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.gameServers.getGameServer("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.get("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}", headers=headers){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"enabled": true,
"linked_to": {
"hostname": "string",
"ip": "string",
"platform": "string",
"saved_at": "2024-01-01T00:00:00Z",
"version": "string",
"last_fetched_commands_at": "2024-01-01T00:00:00Z",
"last_fetched_commands_from_ip": "string"
},
"name": "string",
"store_id": "411486491630370816",
"updated_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"token": "string",
"token_reset_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}Update a Game Server By ID for a store
Performs a delta update of a game server by the ID for the specified store.
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
linked_toGameServerLinkDtoRequired
updated_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X PATCH "https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}" \
-H "Authorization: APIKey TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"name": "string"
}'import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.gameServers.updateGameServer("411486491630370816", {
enabled: true,
name: "string",
});import requests
headers = {"Authorization": "APIKey TOKEN"}
payload = {
"enabled": True,
"name": "string",
}
response = requests.patch("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}", headers=headers, json=payload){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"enabled": true,
"linked_to": {
"hostname": "string",
"ip": "string",
"platform": "string",
"saved_at": "2024-01-01T00:00:00Z",
"version": "string",
"last_fetched_commands_at": "2024-01-01T00:00:00Z",
"last_fetched_commands_from_ip": "string"
},
"name": "string",
"store_id": "411486491630370816",
"updated_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"token": "string",
"token_reset_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}Delete a Game Server by ID for a store
Authorization: APIKey TOKEN.curl -X DELETE "https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
await paynow.gameServers.deleteGameServer("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.delete("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}", headers=headers)Reset the API Key Token for a Game Server for a store
Authorization: APIKey TOKEN.Show fieldsHide fields
created_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
linked_toGameServerLinkDtoRequired
updated_byActorDtoRequiredRepresents the actor that performed an action, such as the user, API key or game server that
created or changed a record.
anonymoususerapi_keycustomergame_serverinternaladminplatformglobal_customer
Failed requests return a PayNowError body. See the error response guide.
curl -X POST "https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/reset-token" \
-H "Authorization: APIKey TOKEN"import { createManagementClient } from "@paynow-gg/typescript-sdk";
const paynow = createManagementClient({
apiKey: "API_KEY",
storeId: "STORE_ID",
});
const result = await paynow.gameServers.resetGameServerToken("411486491630370816");import requests
headers = {"Authorization": "APIKey TOKEN"}
response = requests.post("https://api.paynow.gg/v1/stores/{storeId}/gameservers/{gameServerId}/reset-token", headers=headers){
"id": "411486491630370816",
"created_at": "2024-01-01T00:00:00Z",
"created_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"enabled": true,
"linked_to": {
"hostname": "string",
"ip": "string",
"platform": "string",
"saved_at": "2024-01-01T00:00:00Z",
"version": "string",
"last_fetched_commands_at": "2024-01-01T00:00:00Z",
"last_fetched_commands_from_ip": "string"
},
"name": "string",
"store_id": "411486491630370816",
"updated_by": {
"id": "411486491630370816",
"type": "anonymous"
},
"token": "string",
"token_reset_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}