Developer REST APIEvent-Driven
Webhooks & Signature Verification
Subscribe to real-time events delivered directly to your server via HTTP POST with cryptographic HMAC-SHA256 signature headers.
Supported Event Catalog
When configured in your Studio dashboard, Buzzeee delivers webhook payloads as JSON HTTP POST requests:
| Event Name | Trigger Condition | Payload Summary |
|---|---|---|
| giveaway.winner | A giveaway draw executes and winner(s) are selected. | Winner handles, prize title, and cryptographic proof bundle. |
| giveaway.locked | Entries freeze and the manifest hash is generated. | Total entrants, total pool weight, and manifest SHA-256 hash. |
| hunt.opened | Streamer begins opening bonuses in a hunt session. | Total bonuses, starting cost, and initial Req X multiplier. |
| bonus.recorded | A casino slot payout or multiplier is logged. | Game title, bet amount, multiplier ($X$), and dollar payout. |
| coin.drop.claimed | A chatter claims coins from an active chat drop. | Chatter username, coins awarded, and new wallet balance. |
Verifying HMAC-SHA256 Signatures
Every webhook delivery includes an x-buzzeee-signature header formatted as t=<timestamp>,v1=<signature_hex>. Compute the HMAC-SHA256 of t.payload using your webhook signing secret:
Verifying Webhook Signatures
import crypto from 'crypto';
export function verifyBuzzeeeWebhook(
rawBody: string,
header: string,
secret: string
): boolean {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const timestamp = parts['t'];
const expectedSig = parts['v1'];
if (!timestamp || !expectedSig) return false;
// Protect against replay attacks: reject timestamps older than 5 minutes
const now = Math.floor(Date.now() / 1000);
if (Math.abs(now - Number(timestamp)) > 300) {
return false;
}
const payload = `${timestamp}.${rawBody}`;
const computedSig = crypto.createHmac('sha256', secret).update(payload).digest('hex');
return crypto.timingSafeEqual(
Buffer.from(computedSig, 'utf-8'),
Buffer.from(expectedSig, 'utf-8')
);
}