Webhooks push events to your URL as they happen. The public REST API at /public/v1 lets you read tickets, forms, applications and daily analytics. Both need Premium.
A server can have up to 20 webhooks. The URL cannot contain a user name or password and cannot point to a private or internal address. The check runs when you save and again on every delivery. Redirects are not followed.
| Event | Sent when | Fields in data |
|---|---|---|
| TICKET_OPEN | A ticket is opened, by any route. | ticketId, number, creatorId, panelId, channelId |
| TICKET_CLOSE | A ticket is closed, by any route. | ticketId, number, creatorId, assigneeId, reason, closedBy, source |
| TICKET_REOPEN | A closed ticket is reopened. | ticketId, number, creatorId, reopenedBy |
| TICKET_DELETE | A ticket is deleted. | ticketId, deletedBy |
| APPLICATION_APPROVED | An application is approved in the dashboard. | applicationId, formId, userId, reviewerId, note |
| APPLICATION_DENIED | An application is denied in the dashboard. | applicationId, formId, userId, reviewerId, note |
| APPLICATION_SUBMITTED | Selectable, but not sent today. | none |
| GIVEAWAY_ENDED | A giveaway ends or is rerolled. | giveawayId, prize, winners, entryCount, reroll |
| POLL_CLOSED | A poll closes. | pollId, question, options, counts, totalVotes, multiChoice, closedAt |
| VERIFICATION_SUCCESS | A member passes a verification check. | panelId, userId |
| VERIFICATION_FAILURE | A member fails a verification check. | panelId, userId |
Note: Applications approved or denied with the buttons in Discord do not send APPLICATION_APPROVED or APPLICATION_DENIED today. Only reviews made in the dashboard do. Treat the application events as incomplete until this changes.
Each delivery is an HTTP POST with a JSON body. event is the event name, serverId the Discord server ID, timestamp the time of the event in ISO 8601, and data the fields from the table above.
POST /webhook HTTP/1.1
Content-Type: application/json
User-Agent: SupremeBot-Webhooks/1.0
X-SupremeBot-Event: true
X-SupremeBot-Delivery: 5d0c8f5e-9c7e-4a36-8c4f-0a7f3a9e1c11
X-SupremeBot-Timestamp: 1794567890
X-SupremeBot-Signature-V2: sha256=<hex>
X-SupremeBot-Signature: sha256=<hex>
{"event":"TICKET_CLOSE","serverId":"123456789012345678","timestamp":"2026-11-13T10:15:00.000Z","data":{"ticketId":"…","number":42,"creatorId":"…","assigneeId":null,"reason":null,"closedBy":"…","source":"manual"}}The new header covers the time as well, so you can reject replayed requests. X-SupremeBot-Signature-V2 is sha256= followed by the hex HMAC-SHA256 of the text timestamp.body, keyed with your secret. The timestamp is in X-SupremeBot-Timestamp, in seconds. Use the raw request body, exactly as received. Do not parse and re-serialise the JSON.
The older header, X-SupremeBot-Signature, is the HMAC-SHA256 of the body alone. It stays for receivers that already use it. New integrations should use the V2 header.
import crypto from "node:crypto";
// Returns true when the request really comes from Supreme Bot and is recent.
export function isValidWebhook({ secret, rawBody, timestamp, signature }) {
const age = Math.abs(Date.now() / 1000 - Number(timestamp));
if (!Number.isFinite(age) || age > 300) return false; // reject anything older than 5 minutes
const expected = "sha256=" + crypto
.createHmac("sha256", secret)
.update(`${timestamp}.${rawBody}`)
.digest("hex");
const a = Buffer.from(expected);
const b = Buffer.from(String(signature || ""));
return a.length === b.length && crypto.timingSafeEqual(a, b);
}Note: The five-minute window is a suggestion, not a rule of the bot. Choose your own.
Revoke a key at any time with Revoke key. Keys are read-only: no endpoint changes data.
Base URL: https://supremebot.carbonstealth.eu/public/v1. Send the key as a bearer token in the Authorization header. Every endpoint returns data for the key's own server only.
| Method and path | Scope | Returns |
|---|---|---|
| GET /me | none | server (id, name, icon, isPremium, plan), keyId, scopes |
| GET /tickets | tickets:read | data, total, limit, offset. Query: limit, offset, status |
| GET /tickets/{id} | tickets:read | The ticket. 404 if it does not exist on this server |
| GET /forms | forms:read | data: forms with the number of applications |
| GET /applications | applications:read | data, total, limit, offset. Query: limit, offset, status |
| GET /analytics/daily | analytics:read | data: daily metrics in date order, at most 365 rows. Query: from, to |
curl https://supremebot.carbonstealth.eu/public/v1/tickets?status=OPEN&limit=50 \
-H "Authorization: Bearer bpk_live_..."The four scopes /public/v1 uses are tickets:read, forms:read, applications:read and analytics:read. The key form also lists server:read, panels:read, polls:read and giveaways:read. No /public/v1 endpoint uses those four today, so leave them unticked.
A bad value returns 400 with a message that names the parameter.
| Parameter | Applies to | Rule |
|---|---|---|
| limit | tickets, applications | Whole number from 1. Default 20. Values above 100 are treated as 100. |
| offset | tickets, applications | Whole number, 0 or more. Default 0. |
| status | tickets | OPEN, CLAIMED, CLOSED or ARCHIVED |
| status | applications | PENDING, APPROVED, DENIED or INTERVIEW |
| from, to | analytics/daily | A valid date, for example 2026-11-01 |
| Status | Meaning |
|---|---|
| 400 | A query parameter is invalid. |
| 401 | The bearer token is missing, not a bpk_live_ key, invalid, revoked or expired. |
| 403 | The key lacks the scope (Missing scope), or the server has no Premium plan (code PREMIUM_REQUIRED). |
| 404 | The ticket does not exist on this server. |
| 429 | Too many requests. |
Yes. A server on the Free plan cannot create webhooks, and API keys answer 403 PREMIUM_REQUIRED.
No. Create a key with only the scopes you need and, if you like, a short expiry.
Fix the endpoint, then switch the webhook on again in Data & integrations → Webhooks. The failure count resets.
No. All endpoints read.
Checked against the bot on 2026-11-13.