REST API v1 · Entwickler · API-Referenz

Gewinnspiele-API-Referenz

Alle 6 Gewinnspiele-Endpunkte der BotGG-REST-API v1: Scopes, Parameter, Felder, Fehler und sofort ausführbare Beispiele in curl, JavaScript und Python.

Entwicklerdokumentation
Auf dieser Seite

Endpunkte

Pfade sind relativ zu https://console.botgg.app/api/v1. Sende deinen API-Schlüssel als Authorization: Bearer botgg_…; IDs sind Strings.

Gewinnspiele-Endpunkte
EndpunktScopeBeschreibung
GET/guilds/{guildId}/giveawaysgiveaways:readList giveaways
POST/guilds/{guildId}/giveawaysgiveaways:writeStart a giveaway
GET/guilds/{guildId}/giveaways/{giveawayId}giveaways:readGet a giveaway
GET/guilds/{guildId}/giveaways/{giveawayId}/entriesgiveaways:readList a giveaway’s entrants
POST/guilds/{guildId}/giveaways/{giveawayId}/endgiveaways:writeEnd a giveaway now
POST/guilds/{guildId}/giveaways/{giveawayId}/rerollgiveaways:writeReroll winners

Neben den unten genannten eigenen Fehlern kann jeder Endpunkt diese allgemeinen zurückgeben:

List giveaways

GET/guilds/{guildId}/giveaways

Scope: giveaways:read

status: active, scheduled, ended, cancelled or open (= scheduled + active). Running ones by end time, others newest first.

Dieses Feature muss auf dem Server aktiviert sein: Gewinnspiele

Parameter
NameInTypErforderlichBeschreibung
guildIdPfadstringJaDie ID deines Servers · Discord-ID (String)
statusQuerystringNeinEines von scheduled, active, ended, cancelled, open
pageQueryintegerNein1–10.000 · Standard 1
limitQueryintegerNein1–100 · Standard 25

Antwort

Antwortfelder · 200
FeldTypErforderlichBeschreibung
itemsarray of objectJa
items[].idintegerJa
items[].statusstringJaEines von scheduled, active, ended, cancelled
items[].prizestringJa
items[].descriptionstring | nullJa
items[].channelIdstringJa
items[].messageUrlstring | nullJanull until the bot posted it
items[].winnersCountintegerJa
items[].startsAtstringJa
items[].endsAtstringJa
items[].endedAtstring | nullJa
items[].entrantsintegerJa
items[].entriesintegerJaTickets incl. bonus entries
items[].winnerIdsarray of stringJa
items[].hostIdstringJa
items[].requirementsobjectJa
items[].pingRoleIdstring | nullJa
items[].dmWinnersbooleanJa
items[].createdAtstringJa
totalintegerJa
pageintegerJa
nextPageinteger | nullJa
Antwort · 200
{
  "items": [
    {
      "id": 98765,
      "status": "scheduled",
      "prize": "Nitro",
      "description": "example",
      "channelId": "234567890123456789",
      "messageUrl": "https://example.com",
      "winnersCount": 10,
      "startsAt": "2026-10-07T12:00:00.000Z",
      "endsAt": "2026-10-07T12:00:00.000Z",
      "endedAt": "2026-10-07T12:00:00.000Z",
      "entrants": 42,
      "entries": 10,
      "winnerIds": [
        "234567890123456789"
      ],
      "hostId": "234567890123456789",
      "requirements": {},
      "pingRoleId": "234567890123456789",
      "dmWinners": true,
      "createdAt": "2026-10-07T12:00:00.000Z"
    }
  ],
  "total": 10,
  "page": 10,
  "nextPage": 10
}

Beispiele

curl
curl -s "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways?page=1&limit=25" \
  -H "Authorization: Bearer $BOTGG_API_KEY"
JavaScript (fetch)
// Node.js 18+ (built-in fetch) — on your server, never in a browser
const res = await fetch('https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways?page=1&limit=25', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.BOTGG_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
console.log(data);
Python (requests)
import os
import requests

res = requests.get(
    "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways",
    headers={
        "Authorization": f"Bearer {os.environ['BOTGG_API_KEY']}",
    },
    params={
        "page": 1,
        "limit": 25,
    },
    timeout=10,
)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{res.status_code} {data['error']}: {data['message']}")
print(data)

Fehler

Start a giveaway

POST/guilds/{guildId}/giveaways

Scope: giveaways:writeIdempotency-Key

Saved as scheduled; the bot posts it in the channel within ~10 s (or at startsAt). Same rules as the console editor. Look and DM setting default to the server’s Giveaways settings.

Dieses Feature muss auf dem Server aktiviert sein: Gewinnspiele

Parameter
NameInTypErforderlichBeschreibung
guildIdPfadstringJaDie ID deines Servers · Discord-ID (String)
Idempotency-KeyHeaderstringNeinOptional. Sende einen eindeutigen Wert (eine UUID) und verwende ihn bei einem erneuten Versuch wieder: Die Änderung erfolgt nur einmal. So funktioniert’s

Request-Body

Request-Body
FeldTypErforderlichBeschreibung
channelIdstringJaDiscord-ID (String)
prizestringJa1–200 Zeichen
descriptionstring | nullNeinbis zu 1.000 Zeichen
winnersintegerNeinDefault 1
1–50
startsAtstring | nullNeinISO 8601; omitted / null = start now
ISO-8601-Datum mit Uhrzeit (UTC)
endsAtstringNeinISO 8601; or send durationSeconds
ISO-8601-Datum mit Uhrzeit (UTC)
durationSecondsintegerNeinFrom the start; or send endsAt
60–5.184.000
requirementsobjectNeinEntry cost, rules (AND/OR requirement tree), boost (bonus entries), recheck; the v1 fields (roles, ages, level, bonusRoles) still work
requirements.roleIdsarray of stringNeinbis zu 20 Elemente · Standard []
requirements.roleModestringNeinEines von any, all · Standard "any"
requirements.blockedRoleIdsarray of stringNeinbis zu 20 Elemente · Standard []
requirements.minAccountAgeDaysintegerNein0–3.650 · Standard 0
requirements.minMemberDaysintegerNein0–3.650 · Standard 0
requirements.minLevelintegerNein0–1.000 · Standard 0
requirements.entryCostintegerNein0–1.000.000.000 · Standard 0
requirements.bonusRolesarray of objectNeinbis zu 10 Elemente · Standard []
requirements.bonusRoles[].roleIdstringJaDiscord-ID (String)
requirements.bonusRoles[].entriesintegerJa2–10
requirements.rulesobject | nullNeinStandard null
requirements.rules.opstringNeinEines von and, or · Standard "and"
requirements.rules.itemsarray of object | object | object | object | object | object | object | object | object | object | objectNeinbis zu 10 Elemente · Standard []
requirements.boostobject | nullNeinStandard null
requirements.boost.stackstringNeinEines von sum, best · Standard "sum"
requirements.boost.capintegerNein1–100 · Standard 10
requirements.boost.rulesarray of object | object | objectNeinbis zu 10 Elemente · Standard []
requirements.recheckbooleanNeinStandard true
embedobjectNeinDefault: the server’s Giveaways look
embed.colorstringNeinStandard "#D94CFF"
embed.endedColorstringNeinStandard "#4E5058"
embed.emojistringNein1–64 Zeichen · Standard "🎉"
embed.imageUrlstring | nullNeinbis zu 500 Zeichen · Standard null
embed.thumbnailUrlstring | nullNeinbis zu 500 Zeichen · Standard null
pingRoleIdstring | nullNeinDiscord-ID (String)
dmWinnersbooleanNeinDefault: the server setting
hostIdstring | nullNeinShown as the host; default: the API key’s creator
Discord-ID (String)

Antwort

Antwortfelder · 201
FeldTypErforderlichBeschreibung
idintegerJa
statusstringJaEines von scheduled, active, ended, cancelled
prizestringJa
descriptionstring | nullJa
channelIdstringJa
messageUrlstring | nullJanull until the bot posted it
winnersCountintegerJa
startsAtstringJa
endsAtstringJa
endedAtstring | nullJa
entrantsintegerJa
entriesintegerJaTickets incl. bonus entries
winnerIdsarray of stringJa
hostIdstringJa
requirementsobjectJa
pingRoleIdstring | nullJa
dmWinnersbooleanJa
createdAtstringJa
Antwort · 201
{
  "id": 98765,
  "status": "scheduled",
  "prize": "Nitro",
  "description": "example",
  "channelId": "234567890123456789",
  "messageUrl": "https://example.com",
  "winnersCount": 10,
  "startsAt": "2026-10-07T12:00:00.000Z",
  "endsAt": "2026-10-07T12:00:00.000Z",
  "endedAt": "2026-10-07T12:00:00.000Z",
  "entrants": 42,
  "entries": 10,
  "winnerIds": [
    "234567890123456789"
  ],
  "hostId": "234567890123456789",
  "requirements": {},
  "pingRoleId": "234567890123456789",
  "dmWinners": true,
  "createdAt": "2026-10-07T12:00:00.000Z"
}

Beispiele

curl
curl -s -X POST "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways" \
  -H "Authorization: Bearer $BOTGG_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"channelId":"234567890123456789","prize":"Nitro","description":"example","winners":1,"startsAt":"2026-10-07T12:00:00.000Z","endsAt":"2026-10-07T12:00:00.000Z","durationSeconds":3600,"requirements":{"roleIds":[],"roleMode":"any","blockedRoleIds":[],"minAccountAgeDays":0,"minMemberDays":0,"minLevel":0,"entryCost":0,"bonusRoles":[],"rules":{"op":"and","items":[]},"boost":{"stack":"sum","cap":10,"rules":[]},"recheck":true},"embed":{"color":"#D94CFF","endedColor":"#4E5058","emoji":"🎉","imageUrl":"https://example.com","thumbnailUrl":"https://example.com"},"pingRoleId":"234567890123456789","dmWinners":true,"hostId":"234567890123456789"}'
JavaScript (fetch)
// Node.js 18+ (built-in fetch) — on your server, never in a browser
const res = await fetch('https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.BOTGG_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': crypto.randomUUID(), // reuse it when you retry this request
  },
  body: JSON.stringify({
    channelId: '234567890123456789',
    prize: 'Nitro',
    description: 'example',
    winners: 1,
    startsAt: '2026-10-07T12:00:00.000Z',
    endsAt: '2026-10-07T12:00:00.000Z',
    durationSeconds: 3600,
    requirements: {
      roleIds: [],
      roleMode: 'any',
      blockedRoleIds: [],
      minAccountAgeDays: 0,
      minMemberDays: 0,
      minLevel: 0,
      entryCost: 0,
      bonusRoles: [],
      rules: {
        op: 'and',
        items: [],
      },
      boost: {
        stack: 'sum',
        cap: 10,
        rules: [],
      },
      recheck: true,
    },
    embed: {
      color: '#D94CFF',
      endedColor: '#4E5058',
      emoji: '🎉',
      imageUrl: 'https://example.com',
      thumbnailUrl: 'https://example.com',
    },
    pingRoleId: '234567890123456789',
    dmWinners: true,
    hostId: '234567890123456789',
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
console.log(data);
Python (requests)
import os, uuid
import requests

res = requests.post(
    "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways",
    headers={
        "Authorization": f"Bearer {os.environ['BOTGG_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),  # reuse it when you retry this request
    },
    json={
        "channelId": "234567890123456789",
        "prize": "Nitro",
        "description": "example",
        "winners": 1,
        "startsAt": "2026-10-07T12:00:00.000Z",
        "endsAt": "2026-10-07T12:00:00.000Z",
        "durationSeconds": 3600,
        "requirements": {
            "roleIds": [],
            "roleMode": "any",
            "blockedRoleIds": [],
            "minAccountAgeDays": 0,
            "minMemberDays": 0,
            "minLevel": 0,
            "entryCost": 0,
            "bonusRoles": [],
            "rules": {
                "op": "and",
                "items": [],
            },
            "boost": {
                "stack": "sum",
                "cap": 10,
                "rules": [],
            },
            "recheck": True,
        },
        "embed": {
            "color": "#D94CFF",
            "endedColor": "#4E5058",
            "emoji": "🎉",
            "imageUrl": "https://example.com",
            "thumbnailUrl": "https://example.com",
        },
        "pingRoleId": "234567890123456789",
        "dmWinners": True,
        "hostId": "234567890123456789",
    },
    timeout=10,
)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{res.status_code} {data['error']}: {data['message']}")
print(data)

Fehler

Get a giveaway

GET/guilds/{guildId}/giveaways/{giveawayId}

Scope: giveaways:read

With entry counts, winners per draw and the latest queued actions (to follow an end / reroll).

Dieses Feature muss auf dem Server aktiviert sein: Gewinnspiele

Parameter
NameInTypErforderlichBeschreibung
guildIdPfadstringJaDie ID deines Servers · Discord-ID (String)
giveawayIdPfadstringJa

Antwort

Antwortfelder · 200
FeldTypErforderlichBeschreibung
idintegerJa
statusstringJaEines von scheduled, active, ended, cancelled
prizestringJa
descriptionstring | nullJa
channelIdstringJa
messageUrlstring | nullJanull until the bot posted it
winnersCountintegerJa
startsAtstringJa
endsAtstringJa
endedAtstring | nullJa
entrantsintegerJa
entriesintegerJaTickets incl. bonus entries
winnerIdsarray of stringJa
hostIdstringJa
requirementsobjectJa
pingRoleIdstring | nullJa
dmWinnersbooleanJa
createdAtstringJa
winnersarray of objectJa
winners[].userIdstringJa
winners[].drawintegerJa0 = the end draw, 1.. = rerolls
winners[].drawnAtstringJa
actionsarray of objectJaThe latest queued actions (end / reroll / …), newest first
actions[].idintegerJa
actions[].actionstringJa
actions[].statusstringJaEines von pending, processing, done, failed
actions[].errorstring | nullJa
actions[].createdAtstringJa
actions[].processedAtstring | nullJa
Antwort · 200
{
  "id": 98765,
  "status": "scheduled",
  "prize": "Nitro",
  "description": "example",
  "channelId": "234567890123456789",
  "messageUrl": "https://example.com",
  "winnersCount": 10,
  "startsAt": "2026-10-07T12:00:00.000Z",
  "endsAt": "2026-10-07T12:00:00.000Z",
  "endedAt": "2026-10-07T12:00:00.000Z",
  "entrants": 42,
  "entries": 10,
  "winnerIds": [
    "234567890123456789"
  ],
  "hostId": "234567890123456789",
  "requirements": {},
  "pingRoleId": "234567890123456789",
  "dmWinners": true,
  "createdAt": "2026-10-07T12:00:00.000Z",
  "winners": [
    {
      "userId": "876543210987654321",
      "draw": 10,
      "drawnAt": "2026-10-07T12:00:00.000Z"
    }
  ],
  "actions": [
    {
      "id": 98765,
      "action": "example",
      "status": "pending",
      "error": "example",
      "createdAt": "2026-10-07T12:00:00.000Z",
      "processedAt": "2026-10-07T12:00:00.000Z"
    }
  ]
}

Beispiele

curl
curl -s "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789" \
  -H "Authorization: Bearer $BOTGG_API_KEY"
JavaScript (fetch)
// Node.js 18+ (built-in fetch) — on your server, never in a browser
const res = await fetch('https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.BOTGG_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
console.log(data);
Python (requests)
import os
import requests

res = requests.get(
    "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789",
    headers={
        "Authorization": f"Bearer {os.environ['BOTGG_API_KEY']}",
    },
    timeout=10,
)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{res.status_code} {data['error']}: {data['message']}")
print(data)

Fehler

List a giveaway’s entrants

GET/guilds/{guildId}/giveaways/{giveawayId}/entries

Scope: giveaways:read

Ordered by user id. Pass after=<nextCursor> for the next page. weight = tickets (bonus roles), paid = entry cost paid.

Dieses Feature muss auf dem Server aktiviert sein: Gewinnspiele

Parameter
NameInTypErforderlichBeschreibung
guildIdPfadstringJaDie ID deines Servers · Discord-ID (String)
giveawayIdPfadstringJa
limitQueryintegerNein1–100 · Standard 50
afterQuerystringNeinDiscord-ID (String)

Antwort

Antwortfelder · 200
FeldTypErforderlichBeschreibung
itemsarray of objectJa
items[].userIdstringJa
items[].weightintegerJa
items[].paidintegerJa
items[].enteredAtstringJa
nextCursorstring | nullJa
Antwort · 200
{
  "items": [
    {
      "userId": "876543210987654321",
      "weight": 10,
      "paid": 10,
      "enteredAt": "2026-10-07T12:00:00.000Z"
    }
  ],
  "nextCursor": "98700"
}

Beispiele

curl
curl -s "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789/entries?limit=50" \
  -H "Authorization: Bearer $BOTGG_API_KEY"
JavaScript (fetch)
// Node.js 18+ (built-in fetch) — on your server, never in a browser
const res = await fetch('https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789/entries?limit=50', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.BOTGG_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
console.log(data);
Python (requests)
import os
import requests

res = requests.get(
    "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789/entries",
    headers={
        "Authorization": f"Bearer {os.environ['BOTGG_API_KEY']}",
    },
    params={
        "limit": 50,
    },
    timeout=10,
)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{res.status_code} {data['error']}: {data['message']}")
print(data)

Fehler

End a giveaway now

POST/guilds/{guildId}/giveaways/{giveawayId}/end

Scope: giveaways:writeIdempotency-Key

Queued for the bot, which draws the winners and announces them within ~5 s (202). Follow it with GET …/giveaways/{giveawayId}.

Dieses Feature muss auf dem Server aktiviert sein: Gewinnspiele

Parameter
NameInTypErforderlichBeschreibung
guildIdPfadstringJaDie ID deines Servers · Discord-ID (String)
giveawayIdPfadstringJa
Idempotency-KeyHeaderstringNeinOptional. Sende einen eindeutigen Wert (eine UUID) und verwende ihn bei einem erneuten Versuch wieder: Die Änderung erfolgt nur einmal. So funktioniert’s

Antwort

Antwortfelder · 202
FeldTypErforderlichBeschreibung
giveawayIdintegerJa
actionobjectJa
action.idintegerJa
action.actionstringJa
action.statusstringJaEines von pending, processing, done, failed
action.errorstring | nullJa
action.createdAtstringJa
action.processedAtstring | nullJa
Antwort · 202
{
  "giveawayId": 98765,
  "action": {
    "id": 98765,
    "action": "example",
    "status": "pending",
    "error": "example",
    "createdAt": "2026-10-07T12:00:00.000Z",
    "processedAt": "2026-10-07T12:00:00.000Z"
  }
}

Beispiele

curl
curl -s -X POST "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789/end" \
  -H "Authorization: Bearer $BOTGG_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
JavaScript (fetch)
// Node.js 18+ (built-in fetch) — on your server, never in a browser
const res = await fetch('https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789/end', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.BOTGG_API_KEY}`,
    'Idempotency-Key': crypto.randomUUID(), // reuse it when you retry this request
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
console.log(data);
Python (requests)
import os, uuid
import requests

res = requests.post(
    "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789/end",
    headers={
        "Authorization": f"Bearer {os.environ['BOTGG_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),  # reuse it when you retry this request
    },
    timeout=10,
)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{res.status_code} {data['error']}: {data['message']}")
print(data)

Fehler

Reroll winners

POST/guilds/{guildId}/giveaways/{giveawayId}/reroll

Scope: giveaways:writeIdempotency-Key

For an ended giveaway: the bot draws count new winners (never someone who already won) within ~5 s (202).

Dieses Feature muss auf dem Server aktiviert sein: Gewinnspiele

Parameter
NameInTypErforderlichBeschreibung
guildIdPfadstringJaDie ID deines Servers · Discord-ID (String)
giveawayIdPfadstringJa
Idempotency-KeyHeaderstringNeinOptional. Sende einen eindeutigen Wert (eine UUID) und verwende ihn bei einem erneuten Versuch wieder: Die Änderung erfolgt nur einmal. So funktioniert’s

Request-Body

Request-Body
FeldTypErforderlichBeschreibung
countintegerNeinDefault 1
1–20

Antwort

Antwortfelder · 202
FeldTypErforderlichBeschreibung
giveawayIdintegerJa
actionobjectJa
action.idintegerJa
action.actionstringJa
action.statusstringJaEines von pending, processing, done, failed
action.errorstring | nullJa
action.createdAtstringJa
action.processedAtstring | nullJa
Antwort · 202
{
  "giveawayId": 98765,
  "action": {
    "id": 98765,
    "action": "example",
    "status": "pending",
    "error": "example",
    "createdAt": "2026-10-07T12:00:00.000Z",
    "processedAt": "2026-10-07T12:00:00.000Z"
  }
}

Beispiele

curl
curl -s -X POST "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789/reroll" \
  -H "Authorization: Bearer $BOTGG_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"count":12}'
JavaScript (fetch)
// Node.js 18+ (built-in fetch) — on your server, never in a browser
const res = await fetch('https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789/reroll', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.BOTGG_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': crypto.randomUUID(), // reuse it when you retry this request
  },
  body: JSON.stringify({
    count: 12,
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
console.log(data);
Python (requests)
import os, uuid
import requests

res = requests.post(
    "https://console.botgg.app/api/v1/guilds/123456789012345678/giveaways/234567890123456789/reroll",
    headers={
        "Authorization": f"Bearer {os.environ['BOTGG_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),  # reuse it when you retry this request
    },
    json={
        "count": 12,
    },
    timeout=10,
)
data = res.json()
if not res.ok:
    raise RuntimeError(f"{res.status_code} {data['error']}: {data['message']}")
print(data)

Fehler

Bereit, deinen Server aufs nächste Level zu bringen?

Füge BotGG kostenlos hinzu und aktiviere die Features dann in der Web-Konsole.