Download server logs
curl --request GET \
--url https://api.simpl.gg/v1/servers/{instance_id}/logs/download \
--header 'api-key: <api-key>'import requests
url = "https://api.simpl.gg/v1/servers/{instance_id}/logs/download"
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.simpl.gg/v1/servers/{instance_id}/logs/download', 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.simpl.gg/v1/servers/{instance_id}/logs/download",
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.simpl.gg/v1/servers/{instance_id}/logs/download"
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.simpl.gg/v1/servers/{instance_id}/logs/download")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simpl.gg/v1/servers/{instance_id}/logs/download")
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"{\"id\":\"1042\",\"timestamp\":\"2026-09-21T14:00:00.123456Z\",\"level\":\"info\",\"message\":\"Server started on port 7777\",\"continuation\":false}\n"Servers
Download server logs
Every retained line matching the filters, oldest first, as a file
attachment (server-{instance_id}-logs.ndjson or .log). Simpl keeps
logs for 3 days; this is how to keep them longer.
ndjson(default): oneLogLineJSON object per line.text:timestamp LEVEL messageper line. A newline inside a message is written as\n.
GET
/
servers
/
{instance_id}
/
logs
/
download
Download server logs
curl --request GET \
--url https://api.simpl.gg/v1/servers/{instance_id}/logs/download \
--header 'api-key: <api-key>'import requests
url = "https://api.simpl.gg/v1/servers/{instance_id}/logs/download"
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.simpl.gg/v1/servers/{instance_id}/logs/download', 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.simpl.gg/v1/servers/{instance_id}/logs/download",
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.simpl.gg/v1/servers/{instance_id}/logs/download"
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.simpl.gg/v1/servers/{instance_id}/logs/download")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simpl.gg/v1/servers/{instance_id}/logs/download")
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"{\"id\":\"1042\",\"timestamp\":\"2026-09-21T14:00:00.123456Z\",\"level\":\"info\",\"message\":\"Server started on port 7777\",\"continuation\":false}\n"Authorizations
server_keybearer_auth
Per-project server key, prefixed sk_live_. Full access to every
endpoint. Keep it on your backend: never ship it in a game binary.
Path Parameters
Server instance identifier.
Example:
"abc123"
Query Parameters
Available options:
ndjson, text Only return log lines at or after this timestamp.
Example:
"2026-09-21T14:00:00Z"
Only return log lines before this timestamp.
Example:
"2026-09-21T15:00:00Z"
Only return log lines at exactly this level.
Available options:
info, warn, error Case-insensitive substring filter applied to the log message. % and _
are matched literally.
Maximum string length:
200Example:
"port 7777"
Response
The log file.
The response is of type string.