curl --request POST \
--url https://api.computeflow.cloud/api/v3/servers/start \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"name": "<string>",
"region": "<string>",
"startup_args": "<string>",
"compute_size": "small",
"version_tag": "<string>",
"version": 123,
"ttl": 43230,
"auto_restart": false,
"custom_data": {},
"match_id": "<string>",
"environment_variables": {},
"port_configs": [
{
"name": "<string>",
"internal_port": 32768,
"tls_enabled": false
}
]
}
'import requests
url = "https://api.computeflow.cloud/api/v3/servers/start"
payload = {
"name": "<string>",
"region": "<string>",
"startup_args": "<string>",
"compute_size": "small",
"version_tag": "<string>",
"version": 123,
"ttl": 43230,
"auto_restart": False,
"custom_data": {},
"match_id": "<string>",
"environment_variables": {},
"port_configs": [
{
"name": "<string>",
"internal_port": 32768,
"tls_enabled": False
}
]
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
region: '<string>',
startup_args: '<string>',
compute_size: 'small',
version_tag: '<string>',
version: 123,
ttl: 43230,
auto_restart: false,
custom_data: {},
match_id: '<string>',
environment_variables: {},
port_configs: [{name: '<string>', internal_port: 32768, tls_enabled: false}]
})
};
fetch('https://api.computeflow.cloud/api/v3/servers/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.computeflow.cloud/api/v3/servers/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'region' => '<string>',
'startup_args' => '<string>',
'compute_size' => 'small',
'version_tag' => '<string>',
'version' => 123,
'ttl' => 43230,
'auto_restart' => false,
'custom_data' => [
],
'match_id' => '<string>',
'environment_variables' => [
],
'port_configs' => [
[
'name' => '<string>',
'internal_port' => 32768,
'tls_enabled' => false
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.computeflow.cloud/api/v3/servers/start"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"region\": \"<string>\",\n \"startup_args\": \"<string>\",\n \"compute_size\": \"small\",\n \"version_tag\": \"<string>\",\n \"version\": 123,\n \"ttl\": 43230,\n \"auto_restart\": false,\n \"custom_data\": {},\n \"match_id\": \"<string>\",\n \"environment_variables\": {},\n \"port_configs\": [\n {\n \"name\": \"<string>\",\n \"internal_port\": 32768,\n \"tls_enabled\": false\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.computeflow.cloud/api/v3/servers/start")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"region\": \"<string>\",\n \"startup_args\": \"<string>\",\n \"compute_size\": \"small\",\n \"version_tag\": \"<string>\",\n \"version\": 123,\n \"ttl\": 43230,\n \"auto_restart\": false,\n \"custom_data\": {},\n \"match_id\": \"<string>\",\n \"environment_variables\": {},\n \"port_configs\": [\n {\n \"name\": \"<string>\",\n \"internal_port\": 32768,\n \"tls_enabled\": false\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.computeflow.cloud/api/v3/servers/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"region\": \"<string>\",\n \"startup_args\": \"<string>\",\n \"compute_size\": \"small\",\n \"version_tag\": \"<string>\",\n \"version\": 123,\n \"ttl\": 43230,\n \"auto_restart\": false,\n \"custom_data\": {},\n \"match_id\": \"<string>\",\n \"environment_variables\": {},\n \"port_configs\": [\n {\n \"name\": \"<string>\",\n \"internal_port\": 32768,\n \"tls_enabled\": false\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"instance_id": "<string>",
"name": "<string>",
"status": "launching",
"network_ports": [
{
"name": "<string>",
"internal_port": 123,
"external_port": 123,
"protocol": "udp",
"host": "<string>",
"tls_enabled": true
}
],
"startup_args": "<string>",
"service_type": "match_based",
"compute_size": "<string>",
"region": "<string>",
"version_tag": "<string>",
"version": 123,
"started_at": "2023-11-07T05:31:56Z",
"stopped_at": "2023-11-07T05:31:56Z",
"auto_restart": true,
"custom_data": {},
"ttl": 123,
"is_pool_server": true,
"pool_claimed_at": "2023-11-07T05:31:56Z",
"match_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Start a new server
Creates and launches a new game server instance. The server starts in launching status and transitions to running when the game process opens its configured ports (typically 10–30 seconds, or ~5 seconds if a pool server is available).
The response includes network_ports with the connection details (host + external_port) that game clients need to connect.
Plan limits: Free plan allows 1 active server with a 1-hour TTL and small compute. Pro plan unlocks unlimited servers with all compute sizes.
Build resolution: Uses the latest ready build matching version_tag (defaults to "default"). Pin to a specific build with the version parameter.
curl --request POST \
--url https://api.computeflow.cloud/api/v3/servers/start \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"name": "<string>",
"region": "<string>",
"startup_args": "<string>",
"compute_size": "small",
"version_tag": "<string>",
"version": 123,
"ttl": 43230,
"auto_restart": false,
"custom_data": {},
"match_id": "<string>",
"environment_variables": {},
"port_configs": [
{
"name": "<string>",
"internal_port": 32768,
"tls_enabled": false
}
]
}
'import requests
url = "https://api.computeflow.cloud/api/v3/servers/start"
payload = {
"name": "<string>",
"region": "<string>",
"startup_args": "<string>",
"compute_size": "small",
"version_tag": "<string>",
"version": 123,
"ttl": 43230,
"auto_restart": False,
"custom_data": {},
"match_id": "<string>",
"environment_variables": {},
"port_configs": [
{
"name": "<string>",
"internal_port": 32768,
"tls_enabled": False
}
]
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
region: '<string>',
startup_args: '<string>',
compute_size: 'small',
version_tag: '<string>',
version: 123,
ttl: 43230,
auto_restart: false,
custom_data: {},
match_id: '<string>',
environment_variables: {},
port_configs: [{name: '<string>', internal_port: 32768, tls_enabled: false}]
})
};
fetch('https://api.computeflow.cloud/api/v3/servers/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.computeflow.cloud/api/v3/servers/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'region' => '<string>',
'startup_args' => '<string>',
'compute_size' => 'small',
'version_tag' => '<string>',
'version' => 123,
'ttl' => 43230,
'auto_restart' => false,
'custom_data' => [
],
'match_id' => '<string>',
'environment_variables' => [
],
'port_configs' => [
[
'name' => '<string>',
'internal_port' => 32768,
'tls_enabled' => false
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.computeflow.cloud/api/v3/servers/start"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"region\": \"<string>\",\n \"startup_args\": \"<string>\",\n \"compute_size\": \"small\",\n \"version_tag\": \"<string>\",\n \"version\": 123,\n \"ttl\": 43230,\n \"auto_restart\": false,\n \"custom_data\": {},\n \"match_id\": \"<string>\",\n \"environment_variables\": {},\n \"port_configs\": [\n {\n \"name\": \"<string>\",\n \"internal_port\": 32768,\n \"tls_enabled\": false\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.computeflow.cloud/api/v3/servers/start")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"region\": \"<string>\",\n \"startup_args\": \"<string>\",\n \"compute_size\": \"small\",\n \"version_tag\": \"<string>\",\n \"version\": 123,\n \"ttl\": 43230,\n \"auto_restart\": false,\n \"custom_data\": {},\n \"match_id\": \"<string>\",\n \"environment_variables\": {},\n \"port_configs\": [\n {\n \"name\": \"<string>\",\n \"internal_port\": 32768,\n \"tls_enabled\": false\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.computeflow.cloud/api/v3/servers/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"region\": \"<string>\",\n \"startup_args\": \"<string>\",\n \"compute_size\": \"small\",\n \"version_tag\": \"<string>\",\n \"version\": 123,\n \"ttl\": 43230,\n \"auto_restart\": false,\n \"custom_data\": {},\n \"match_id\": \"<string>\",\n \"environment_variables\": {},\n \"port_configs\": [\n {\n \"name\": \"<string>\",\n \"internal_port\": 32768,\n \"tls_enabled\": false\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"instance_id": "<string>",
"name": "<string>",
"status": "launching",
"network_ports": [
{
"name": "<string>",
"internal_port": 123,
"external_port": 123,
"protocol": "udp",
"host": "<string>",
"tls_enabled": true
}
],
"startup_args": "<string>",
"service_type": "match_based",
"compute_size": "<string>",
"region": "<string>",
"version_tag": "<string>",
"version": 123,
"started_at": "2023-11-07T05:31:56Z",
"stopped_at": "2023-11-07T05:31:56Z",
"auto_restart": true,
"custom_data": {},
"ttl": 123,
"is_pool_server": true,
"pool_claimed_at": "2023-11-07T05:31:56Z",
"match_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Body
Configuration for starting a new game server instance.
Deployment region. Determines where the server runs physically. Case-insensitive. Available regions: us-east, us-south, us-west, eu-north, eu-west, eu-uk, ap-south, sea, ap-north, ap-southeast, south-america-brazil, south-america-chile, south-america, south-africa, ea. Note: south-america and ea are legacy aliases for south-america-brazil and ap-north.
1Machine size for the server. Shared CPU: micro (512MB), small (1GB), medium (2GB), large (4GB), xlarge (8GB). Dedicated CPU: dedicated-small (2GB), dedicated-medium (4GB), dedicated-large (8GB), dedicated-xlarge (16GB). Free plan is limited to "small".
micro, small, medium, large, xlarge, dedicated-small, dedicated-medium, dedicated-large, dedicated-xlarge, persistent-small, persistent-medium, persistent-large, persistent-xlarge Response
Server created and launching. The network_ports array contains connection details for game clients. Poll GET /servers/{instance_id} until status is running.
Complete details of a game server instance, including connection info, status, and configuration.