| title | Webhooks |
|---|---|
| description | Send real-time event notifications to any HTTP endpoint. |
| icon | webhook |
Build any integration you need. Webhooks send real-time HTTP notifications to any endpoint when events occur in Quackback. Connect to Zapier, your data warehouse, custom bots, or internal tools.
Webhooks are managed entirely through the REST API. Each webhook specifies:
- A URL to receive POST requests
- Which events to listen for
- Optional board filtering to scope events to specific boards
- A signing secret for verifying authenticity (HMAC-SHA256)
[Your App] Create a webhook via the API:
curl -X POST https://feedback.example.com/api/v1/webhooks \
-H "Authorization: Bearer qb_your_admin_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/webhook",
"events": ["post.created", "post.status_changed"],
"boardIds": ["board_01h455vb4pex5vsknk084sn02q"]
}'The response includes the signing secret, which is only shown once:
{
"data": {
"id": "webhook_01h455vb4pex5vsknk084sn02q",
"url": "https://your-server.com/webhook",
"secret": "whsec_...",
"events": ["post.created", "post.status_changed"],
"boardIds": ["board_01h455vb4pex5vsknk084sn02q"],
"status": "active",
"createdAt": "2025-01-15T10:30:00.000Z"
}
}| Event | Description |
|---|---|
post.created |
New feedback post submitted |
post.status_changed |
Post status updated |
comment.created |
New comment added to a post |
conversation.created |
A visitor starts a new conversation |
conversation.status_changed |
A conversation moves between open, pending, and closed |
conversation.assigned |
A conversation is assigned to or unassigned from an agent (includes auto-routing) |
conversation.priority_changed |
A conversation's priority changes |
conversation.csat_submitted |
A visitor submits a satisfaction rating |
message.created |
A visitor or agent sends a public message |
message.note_created |
An agent adds an internal note (private — subscribe only if your endpoint should receive it) |
message.deleted |
A public message is deleted |
Each webhook delivery includes these headers:
| Header | Description |
|---|---|
Content-Type |
application/json |
User-Agent |
Quackback-Webhook/1.0 |
X-Quackback-Event |
Event type (e.g., post.created) |
X-Quackback-Signature |
HMAC-SHA256 signature for verification |
X-Quackback-Timestamp |
Unix timestamp of the request |
Every webhook delivery sends a JSON body with this structure:
{
"id": "evt_a1b2c3d4e5f6...",
"type": "post.created",
"createdAt": "2025-01-15T10:30:00.000Z",
"data": {
"post": {
"id": "post_01h455vb4pex5vsknk084sn02q",
"title": "Add dark mode support",
"content": "It would be great to have a dark mode...",
"boardId": "board_01h455vb4pex5vsknk084sn02q",
"boardSlug": "feature-requests",
"authorEmail": "jane@example.com",
"voteCount": 12
}
}
}| Field | Description |
|---|---|
id |
Unique event ID (prefixed with evt_) |
type |
Event type (e.g., post.created) |
createdAt |
ISO 8601 timestamp of when the event occurred |
data |
Event-specific payload (varies by event type) |
[Your Server] Every webhook delivery is signed with HMAC-SHA256. Always verify the signature to confirm the request came from Quackback.
The signature is computed over \{timestamp\}.\{json_body\}:
import crypto from 'crypto';
function verifyWebhook(payload, signature, timestamp, secret) {
const signaturePayload = `${timestamp}.${payload}`;
const expected = crypto
.createHmac('sha256', secret)
.update(signaturePayload)
.digest('hex');
return `sha256=${expected}` === signature;
}
// In your handler
app.post('/webhook', (req, res) => {
const signature = req.headers['x-quackback-signature'];
const timestamp = req.headers['x-quackback-timestamp'];
const payload = JSON.stringify(req.body);
if (!verifyWebhook(payload, signature, timestamp, WEBHOOK_SECRET)) {
return res.status(401).send('Invalid signature');
}
// Process the event
console.log('Event:', req.body.type);
res.status(200).send('OK');
});Pass boardIds when creating a webhook to only receive events from specific boards. If omitted, the webhook receives events from all boards.
# Only events from a specific board
curl -X POST https://feedback.example.com/api/v1/webhooks \
-H "Authorization: Bearer qb_your_admin_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/webhook",
"events": ["post.created"],
"boardIds": ["board_01h455vb4pex5vsknk084sn02q"]
}'curl https://feedback.example.com/api/v1/webhooks \
-H "Authorization: Bearer qb_your_admin_key"curl -X PATCH https://feedback.example.com/api/v1/webhooks/webhook_01h4... \
-H "Authorization: Bearer qb_your_admin_key" \
-H "Content-Type: application/json" \
-d '{ "events": ["post.created", "comment.created"] }'If a secret is compromised, rotate it:
curl -X POST https://feedback.example.com/api/v1/webhooks/webhook_01h4.../rotate \
-H "Authorization: Bearer qb_your_admin_key"The response contains the new secret. Update your server immediately.
curl -X DELETE https://feedback.example.com/api/v1/webhooks/webhook_01h4... \
-H "Authorization: Bearer qb_your_admin_key"Build a Slack bot with more control than the built-in integration:
app.post('/webhook', async (req, res) => {
const { type, data } = req.body;
if (type === 'post.created') {
await slack.chat.postMessage({
channel: '#feedback',
text: `New feedback: ${data.post.title}`,
});
}
res.sendStatus(200);
});- [Zapier / n8n] Create a Zap or n8n workflow with a webhook trigger
- Copy the webhook URL
- [Your App] Create a Quackback webhook pointing to that URL
- [Zapier / n8n] Map fields in your automation tool
Log events to your analytics platform:
app.post('/webhook', async (req, res) => {
const { type, createdAt, data } = req.body;
await db.insert('feedback_events', {
event_type: type,
event_time: createdAt,
post_id: data.post?.id,
raw_payload: JSON.stringify(data),
});
res.sendStatus(200);
});Failed webhook deliveries are retried automatically:
- Attempts: Up to 3 delivery attempts per event
- Backoff: Exponential backoff starting at 1 second
- Retryable errors: Server errors (5xx), rate limits (429), and network timeouts
- Non-retryable errors: Client errors (4xx except 429) are not retried
- Timeout: Each delivery attempt has a 5-second timeout
- Auto-disable: After 50 consecutive permanent failures, the webhook is automatically disabled. The failure counter resets on each successful delivery.
- Always verify signatures - reject unverified requests
- Use HTTPS - never use HTTP endpoints for webhook receivers
- Check timestamps - reject requests older than 5 minutes
- Rotate secrets periodically - use the rotate endpoint
- Respond quickly - return a
200status within a few seconds; process asynchronously if needed
- API Overview - Full REST API documentation
- Integrations Overview - All available integrations
- Slack - Built-in Slack notification integration