BUZZHEAVIER
Motherfucking file hosting service
Get notified when shit happens to your files. We'll send HTTP POST requests to your URL whenever something important happens.
Header | Description | Example |
---|---|---|
X-Buzzheavier-Signature |
HMAC SHA256 signature | buzzheavier.com |
X-Buzzheavier-Event |
Buzzheavier event type | FILE_EXPIRY |
User-Agent |
Buzzheavier HTTP client user agent | Buzzheavier-Webhook/1.0 |
Event Type | When it's sent |
---|---|
FILE_EXPIRY | When a file expires |
{
"event_type": "FILE_EXPIRY",
"timestamp": "2024-02-20T15:04:05Z",
"data": {
"id": "abc123def456",
"name": "document.pdf",
"expired_at": "2024-02-20T15:04:05Z",
"directory_id": "xyz789"
}
}
Every webhook request includes a signature. Here's how to verify it:
// Your webhook secret from settings page
secret = "your_webhook_secret"
// Get signature from header
signature = request.headers["X-Buzzheavier-Signature"]
// Calculate expected signature
payload = request.body
expected = hmac_sha256(secret, payload)
// Compare (use constant time comparison)
if signature == expected {
// Request is from Buzzheavier
}