curl --request GET \
--url https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs \
--header 'api-key: <api-key>'import requests
url = "https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs', 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/{instance_id}/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"logs": [
{
"timestamp": "<string>",
"message": "<string>",
"level": "<string>",
"instance": "<string>",
"region": "<string>"
}
],
"instance_id": "<string>",
"machine_id": "<string>",
"next_token": "<string>",
"older_token": "<string>"
}{
"error": "<string>",
"status": 123,
"detail": "<string>"
}Get server runtime logs
Retrieves runtime logs (stdout/stderr) from a game server, including timestamps, log levels, and region info.
Pagination: Use the next_token from the response as start_time in the next request to fetch subsequent logs. Returns an empty logs array if the server has never launched.
curl --request GET \
--url https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs \
--header 'api-key: <api-key>'import requests
url = "https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs', 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/{instance_id}/logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.computeflow.cloud/api/v3/servers/{instance_id}/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"logs": [
{
"timestamp": "<string>",
"message": "<string>",
"level": "<string>",
"instance": "<string>",
"region": "<string>"
}
],
"instance_id": "<string>",
"machine_id": "<string>",
"next_token": "<string>",
"older_token": "<string>"
}{
"error": "<string>",
"status": 123,
"detail": "<string>"
}Query Parameters
Which end of the window to return when it holds more than limit rows. "newest" (default) returns the most-recent entries (live-tail). "oldest" returns the EARLIEST entries ascending from start_time — use it to reach a server's genuine first log lines. In "oldest" mode older_token is null (you are at the start) and next_token pages FORWARD toward now (pass it as start_time, keeping order=oldest).
newest, oldest Response
Server runtime logs with pagination cursor.
Server runtime logs with forward (live-tail) and backward pagination support.