curl --request GET \
--url https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}', 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://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "301655085954367490",
"log_type": 50,
"enabled": 0,
"log_channel": "<string>",
"format_type": 0,
"color": 16711748,
"ignore_bot_executors": 0,
"ignore_bot_targets": 0,
"active_ignore": 0,
"log_channel_webhook_id": "<string>",
"log_channel_webhook_token": "<string>"
}
]{}{}{}{}Get settings for log types
Returns the settings of every log type that has been customised on this server, not only log_id. Pick the row whose log_type you want.
The response includes webhook credentials for log types that have their own channel. Treat it as sensitive.
curl --request GET \
--url https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}', 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://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://quark.bot/api/servers/{guild_id}/config/logging/settings/{log_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "301655085954367490",
"log_type": 50,
"enabled": 0,
"log_channel": "<string>",
"format_type": 0,
"color": 16711748,
"ignore_bot_executors": 0,
"ignore_bot_targets": 0,
"active_ignore": 0,
"log_channel_webhook_id": "<string>",
"log_channel_webhook_token": "<string>"
}
]{}{}{}{}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The server's ID. Must be the server the token was created for.
^\d{17,20}$"301655085954367490"
A log type ID. See the log types page.
0 <= x <= 100Query Parameters
Set to pro to act on the Quark Pro bot's configuration. Leave out for the main Quark bot.
pro Response
One row per customised log type.
The server ID.
^\d{17,20}$"301655085954367490"
The log type ID. See the log types page.
0 <= x <= 1000 if this log type is switched off.
0, 1 The channel this log type is sent to, or null to follow its category.
Format override, or null to use the server-wide format.
0, 2, null Embed colour as an integer RGB value, or null for the default.
16711748
1 or 0 to override the server-wide Bot Executors setting for this type, or null to follow it.
0, 1, null 1 or 0 to override the server-wide Bot Targets setting for this type, or null to follow it.
0, 1, null Reserved.
0, 1, null ID of the webhook Quark uses for this log type's own channel.
Token of that webhook. Treat it as a secret.
Was this page helpful?

