REST API v1 · Entwickler · API-Referenz
Bewerbungen-API-Referenz
Alle 4 Bewerbungen-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.
| Endpunkt | Scope | Beschreibung |
|---|---|---|
GET/guilds/{guildId}/applications/forms | applications:read | List application forms |
GET/guilds/{guildId}/applications/submissions | applications:read | List applications |
GET/guilds/{guildId}/applications/submissions/{number} | applications:read | Get an application |
POST/guilds/{guildId}/applications/submissions/{number}/decision | applications:write | Accept or deny an application |
Neben den unten genannten eigenen Fehlern kann jeder Endpunkt diese allgemeinen zurückgeben:
List application forms
GET/guilds/{guildId}/applications/forms
In the console’s order, with their questions and submission counts.
Dieses Feature muss auf dem Server aktiviert sein: Bewerbungen
| Name | In | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
guildId | Pfad | string | Ja | Die ID deines Servers · Discord-ID (String) |
Antwort
| Feld | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
items | array of object | Ja | |
items[].id | integer | Ja | |
items[].title | string | Ja | |
items[].description | string | Ja | |
items[].open | boolean | Ja | The open toggle (the open window is in opensAt / closesAt) |
items[].opensAt | string | null | Ja | ISO 8601 date-time |
items[].closesAt | string | null | Ja | ISO 8601 date-time |
items[].questions | array of object | Ja | |
items[].questions[].id | string | Ja | |
items[].questions[].type | string | Ja | |
items[].questions[].label | string | Ja | |
items[].questions[].required | boolean | Ja | |
items[].submissions | object | Ja | |
items[].submissions.total | integer | Ja | |
items[].submissions.open | integer | Ja |
{
"items": [
{
"id": 98765,
"title": "example",
"description": "example",
"open": true,
"opensAt": "2026-10-07T12:00:00.000Z",
"closesAt": "2026-10-07T12:00:00.000Z",
"questions": [
{
"id": "example",
"type": "example",
"label": "Example",
"required": true
}
],
"submissions": {
"total": 10,
"open": 10
}
}
]
}Beispiele
curl -s "https://console.botgg.app/api/v1/guilds/123456789012345678/applications/forms" \
-H "Authorization: Bearer $BOTGG_API_KEY"// 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/applications/forms', {
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);import os
import requests
res = requests.get(
"https://console.botgg.app/api/v1/guilds/123456789012345678/applications/forms",
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
| HTTP | Codes |
|---|---|
| 409 | FEATURE_DISABLED |
| 503 | SERVICE_UNAVAILABLE |
List applications
GET/guilds/{guildId}/applications/submissions
Newest first, without answers. status=open = pending + interview + hold, decided = accepted + denied. Pass before=<nextCursor> for the next page.
Dieses Feature muss auf dem Server aktiviert sein: Bewerbungen
| Name | In | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
guildId | Pfad | string | Ja | Die ID deines Servers · Discord-ID (String) |
status | Query | string | Nein | Eines von pending, interview, hold, accepted, denied, withdrawn, open, decided |
formId | Query | integer | Nein | mindestens 1 |
userId | Query | string | Nein | Only this applicant Discord-ID (String) |
limit | Query | integer | Nein | 1–100 · Standard 25 |
before | Query | integer | Nein | 1–999.999.999 |
Antwort
| Feld | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
items | array of object | Ja | |
items[].number | integer | Ja | |
items[].formId | integer | null | Ja | null when the form was deleted |
items[].formTitle | string | null | Ja | |
items[].userId | string | Ja | |
items[].status | string | Ja | Eines von pending, interview, hold, accepted, denied, withdrawn |
items[].votes | object | Ja | |
items[].votes.up | integer | Ja | |
items[].votes.down | integer | Ja | |
items[].submittedAt | string | null | Ja | ISO 8601 date-time |
items[].decidedAt | string | null | Ja | ISO 8601 date-time |
items[].decidedBy | string | null | Ja | null = system / API |
items[].reason | string | null | Ja | |
nextCursor | string | null | Ja |
{
"items": [
{
"number": 7,
"formId": 98765,
"formTitle": "example",
"userId": "876543210987654321",
"status": "pending",
"votes": {
"up": 10,
"down": 10
},
"submittedAt": "2026-10-07T12:00:00.000Z",
"decidedAt": "2026-10-07T12:00:00.000Z",
"decidedBy": "example",
"reason": "Tournament prize"
}
],
"nextCursor": "98700"
}Beispiele
curl -s "https://console.botgg.app/api/v1/guilds/123456789012345678/applications/submissions?limit=25" \
-H "Authorization: Bearer $BOTGG_API_KEY"// 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/applications/submissions?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);import os
import requests
res = requests.get(
"https://console.botgg.app/api/v1/guilds/123456789012345678/applications/submissions",
headers={
"Authorization": f"Bearer {os.environ['BOTGG_API_KEY']}",
},
params={
"limit": 25,
},
timeout=10,
)
data = res.json()
if not res.ok:
raise RuntimeError(f"{res.status_code} {data['error']}: {data['message']}")
print(data)Fehler
| HTTP | Codes |
|---|---|
| 409 | FEATURE_DISABLED |
| 503 | SERVICE_UNAVAILABLE |
Get an application
GET/guilds/{guildId}/applications/submissions/{number}
With the answers and the applicant snapshot taken at submit time (account age, join date, roles, level).
Dieses Feature muss auf dem Server aktiviert sein: Bewerbungen
| Name | In | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
guildId | Pfad | string | Ja | Die ID deines Servers · Discord-ID (String) |
number | Pfad | string | Ja |
Antwort
| Feld | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
number | integer | Ja | |
formId | integer | null | Ja | null when the form was deleted |
formTitle | string | null | Ja | |
userId | string | Ja | |
status | string | Ja | Eines von pending, interview, hold, accepted, denied, withdrawn |
votes | object | Ja | |
votes.up | integer | Ja | |
votes.down | integer | Ja | |
submittedAt | string | null | Ja | ISO 8601 date-time |
decidedAt | string | null | Ja | ISO 8601 date-time |
decidedBy | string | null | Ja | null = system / API |
reason | string | null | Ja | |
answers | array of object | Ja | |
answers[].id | string | Ja | |
answers[].type | string | Ja | |
answers[].label | string | Ja | |
answers[].text | string | Ja | |
applicant | object | Ja | |
applicant.accountCreatedAt | string | null | Ja | ISO 8601 date-time |
applicant.joinedAt | string | null | Ja | ISO 8601 date-time |
applicant.roleIds | array of string | Ja | |
applicant.level | integer | null | Ja | |
applying | boolean | Ja | A console/API decision is still being applied in Discord |
failedActions | array of object | Ja | |
failedActions[].type | string | Ja | |
failedActions[].error | string | null | Ja |
{
"number": 7,
"formId": 98765,
"formTitle": "example",
"userId": "876543210987654321",
"status": "pending",
"votes": {
"up": 10,
"down": 10
},
"submittedAt": "2026-10-07T12:00:00.000Z",
"decidedAt": "2026-10-07T12:00:00.000Z",
"decidedBy": "example",
"reason": "Tournament prize",
"answers": [
{
"id": "example",
"type": "example",
"label": "Example",
"text": "Example answer"
}
],
"applicant": {
"accountCreatedAt": "2026-10-07T12:00:00.000Z",
"joinedAt": "2026-10-07T12:00:00.000Z",
"roleIds": [
"234567890123456789"
],
"level": 5
},
"applying": true,
"failedActions": [
{
"type": "example",
"error": "example"
}
]
}Beispiele
curl -s "https://console.botgg.app/api/v1/guilds/123456789012345678/applications/submissions/234567890123456789" \
-H "Authorization: Bearer $BOTGG_API_KEY"// 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/applications/submissions/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);import os
import requests
res = requests.get(
"https://console.botgg.app/api/v1/guilds/123456789012345678/applications/submissions/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
| HTTP | Codes |
|---|---|
| 404 | APPLICATION_NOT_FOUND |
| 409 | FEATURE_DISABLED |
| 503 | SERVICE_UNAVAILABLE |
Accept or deny an application
POST/guilds/{guildId}/applications/submissions/{number}/decision
Same as Accept / Deny in the console: decided now (status, reason, reapply cooldown after a denial), then the bot gives / removes the form’s roles, DMs the applicant, announces and updates the review within a few seconds (applying). Written to the audit log.
Dieses Feature muss auf dem Server aktiviert sein: Bewerbungen
| Name | In | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
guildId | Pfad | string | Ja | Die ID deines Servers · Discord-ID (String) |
number | Pfad | string | Ja | |
Idempotency-Key | Header | string | Nein | Optional. Sende einen eindeutigen Wert (eine UUID) und verwende ihn bei einem erneuten Versuch wieder: Die Änderung erfolgt nur einmal. So funktioniert’s |
Request-Body
| Feld | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
decision | string | Ja | Eines von accepted, denied |
reason | string | null | Nein | Sent to the applicant (DM) and shown in the review bis zu 1.000 Zeichen |
Antwort
| Feld | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
number | integer | Ja | |
formId | integer | null | Ja | null when the form was deleted |
formTitle | string | null | Ja | |
userId | string | Ja | |
status | string | Ja | Eines von pending, interview, hold, accepted, denied, withdrawn |
votes | object | Ja | |
votes.up | integer | Ja | |
votes.down | integer | Ja | |
submittedAt | string | null | Ja | ISO 8601 date-time |
decidedAt | string | null | Ja | ISO 8601 date-time |
decidedBy | string | null | Ja | null = system / API |
reason | string | null | Ja | |
answers | array of object | Ja | |
answers[].id | string | Ja | |
answers[].type | string | Ja | |
answers[].label | string | Ja | |
answers[].text | string | Ja | |
applicant | object | Ja | |
applicant.accountCreatedAt | string | null | Ja | ISO 8601 date-time |
applicant.joinedAt | string | null | Ja | ISO 8601 date-time |
applicant.roleIds | array of string | Ja | |
applicant.level | integer | null | Ja | |
applying | boolean | Ja | A console/API decision is still being applied in Discord |
failedActions | array of object | Ja | |
failedActions[].type | string | Ja | |
failedActions[].error | string | null | Ja |
{
"number": 7,
"formId": 98765,
"formTitle": "example",
"userId": "876543210987654321",
"status": "pending",
"votes": {
"up": 10,
"down": 10
},
"submittedAt": "2026-10-07T12:00:00.000Z",
"decidedAt": "2026-10-07T12:00:00.000Z",
"decidedBy": "example",
"reason": "Tournament prize",
"answers": [
{
"id": "example",
"type": "example",
"label": "Example",
"text": "Example answer"
}
],
"applicant": {
"accountCreatedAt": "2026-10-07T12:00:00.000Z",
"joinedAt": "2026-10-07T12:00:00.000Z",
"roleIds": [
"234567890123456789"
],
"level": 5
},
"applying": true,
"failedActions": [
{
"type": "example",
"error": "example"
}
]
}Beispiele
curl -s -X POST "https://console.botgg.app/api/v1/guilds/123456789012345678/applications/submissions/234567890123456789/decision" \
-H "Authorization: Bearer $BOTGG_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"decision":"accepted","reason":"Tournament prize"}'// 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/applications/submissions/234567890123456789/decision', {
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({
decision: 'accepted',
reason: 'Tournament prize',
}),
});
const data = await res.json();
if (!res.ok) throw new Error(`${res.status} ${data.error}: ${data.message}`);
console.log(data);import os, uuid
import requests
res = requests.post(
"https://console.botgg.app/api/v1/guilds/123456789012345678/applications/submissions/234567890123456789/decision",
headers={
"Authorization": f"Bearer {os.environ['BOTGG_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()), # reuse it when you retry this request
},
json={
"decision": "accepted",
"reason": "Tournament prize",
},
timeout=10,
)
data = res.json()
if not res.ok:
raise RuntimeError(f"{res.status_code} {data['error']}: {data['message']}")
print(data)Fehler
| HTTP | Codes |
|---|---|
| 400 | INVALID_JSON |
| 403 | SELF_DECISION |
| 404 | APPLICATION_NOT_FOUND |
| 409 | FEATURE_DISABLED, ALREADY_DECIDED |
| 413 | PAYLOAD_TOO_LARGE |
| 415 | UNSUPPORTED_MEDIA_TYPE |
| 422 | IDEMPOTENCY_KEY_REUSED |
| 503 | SERVICE_UNAVAILABLE |