Webhooks
Receive real-time HTTP notifications when events happen in your workspace.
Create a Webhook
POST /api/v1/webhooks
{
"url": "https://yoursite.com/webhooks/blogsaas",
"events": ["blog.published", "blog.deleted"]
}Available Events
| Event | Trigger |
|---|---|
| blog.published | Blog goes live |
| blog.scheduled | Blog scheduled |
| blog.deleted | Blog deleted |
| member.invited | Team invite sent |
| member.joined | Invite accepted |
Payload Format
{
"event": "blog.published",
"data": { "blogId": "clxxx" },
"timestamp": "2024-01-01T12:00:00Z"
}Verify Signature
import { createHmac } from 'crypto'
const sig = req.headers['x-blogsaas-signature']
const expected = 'sha256=' + createHmac('sha256', webhookSecret)
.update(rawBody).digest('hex')
if (sig !== expected) throw new Error('Invalid signature')Retry Policy
Failed deliveries are retried 3 times with exponential backoff (5s, 10s, 20s). Webhooks are auto-disabled after 10 consecutive failures.