Get the whole configuration
curl --request GET \
--url https://quark.bot/api/servers/{guild_id}/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://quark.bot/api/servers/{guild_id}/config"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://quark.bot/api/servers/{guild_id}/config")
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{
"guilds": [
{
"id": "301655085954367490",
"owner_id": "<string>",
"warnings": "<string>",
"first_log_at": 123
}
],
"serverlogConfigChannels": [
{
"id": "301655085954367490",
"main_channel": "<string>",
"category_modlog": "<string>",
"category_members": "<string>",
"category_actions": "<string>",
"category_text": "<string>",
"category_voice": "<string>",
"category_files": "<string>",
"category_nsfw": "<string>",
"category_server": "<string>",
"category_roles": "<string>",
"category_channels": "<string>",
"category_quark": "<string>"
}
],
"serverlogConfigChannelWebhooks": [
{}
],
"serverlogConfigCustomOptions": [
{
"id": "301655085954367490",
"log_type": 56,
"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>"
}
],
"serverlogConfigIgnoreStandard": [
{
"id": "301655085954367490",
"ignore_type": 0,
"ignore_value": "<string>"
}
],
"serverlogConfigOptions": [
{
"id": "301655085954367490",
"spoilers": 0,
"format_type": 0,
"ignore_bot_targets": 0,
"ignore_bot_executors": 0,
"active_ignore": 0,
"buttons": 123,
"pluralkit_integration": 0,
"pro_promotions": 0,
"modlog_lock_after": 15768000,
"log_name": "<string>",
"log_avatar": 0,
"log_avatar_ref": "<string>",
"log_profile_overrides": {}
}
],
"settingsConfig": [
{
"id": "301655085954367490",
"locale": 9,
"analytics": 0
}
],
"tags": [
{
"id": "301655085954367490",
"tag_id": "a1B2c3D4e5",
"tag_name": "<string>",
"content": "<string>",
"color": 123,
"image": "<string>"
}
],
"quarkApiTokens": [
{
"id": "301655085954367490",
"unique_id": "<string>",
"permissions": 1,
"creator": "301655085954367490"
}
]
}{}{}{}Configuration
Get the whole configuration
Returns every part of the server’s Quark configuration in one response.
The response includes the credentials of the webhooks Quark posts logs through, and the server’s API token records. Treat it as sensitive.
GET
/
servers
/
{guild_id}
/
config
Get the whole configuration
curl --request GET \
--url https://quark.bot/api/servers/{guild_id}/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://quark.bot/api/servers/{guild_id}/config"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://quark.bot/api/servers/{guild_id}/config")
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{
"guilds": [
{
"id": "301655085954367490",
"owner_id": "<string>",
"warnings": "<string>",
"first_log_at": 123
}
],
"serverlogConfigChannels": [
{
"id": "301655085954367490",
"main_channel": "<string>",
"category_modlog": "<string>",
"category_members": "<string>",
"category_actions": "<string>",
"category_text": "<string>",
"category_voice": "<string>",
"category_files": "<string>",
"category_nsfw": "<string>",
"category_server": "<string>",
"category_roles": "<string>",
"category_channels": "<string>",
"category_quark": "<string>"
}
],
"serverlogConfigChannelWebhooks": [
{}
],
"serverlogConfigCustomOptions": [
{
"id": "301655085954367490",
"log_type": 56,
"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>"
}
],
"serverlogConfigIgnoreStandard": [
{
"id": "301655085954367490",
"ignore_type": 0,
"ignore_value": "<string>"
}
],
"serverlogConfigOptions": [
{
"id": "301655085954367490",
"spoilers": 0,
"format_type": 0,
"ignore_bot_targets": 0,
"ignore_bot_executors": 0,
"active_ignore": 0,
"buttons": 123,
"pluralkit_integration": 0,
"pro_promotions": 0,
"modlog_lock_after": 15768000,
"log_name": "<string>",
"log_avatar": 0,
"log_avatar_ref": "<string>",
"log_profile_overrides": {}
}
],
"settingsConfig": [
{
"id": "301655085954367490",
"locale": 9,
"analytics": 0
}
],
"tags": [
{
"id": "301655085954367490",
"tag_id": "a1B2c3D4e5",
"tag_name": "<string>",
"content": "<string>",
"color": 123,
"image": "<string>"
}
],
"quarkApiTokens": [
{
"id": "301655085954367490",
"unique_id": "<string>",
"permissions": 1,
"creator": "301655085954367490"
}
]
}{}{}{}Authorizations
Path Parameters
Query Parameters
Response
The configuration.
Every part of the server's configuration. Each value is an array of rows, or null if nothing is stored.
Was this page helpful?

