Webhooks

Set up webhooks for real-time notifications

Updated 1/21/2026

Webhooks

Receive real-time notifications when events occur in your knowledge base.

Supported Events

EventDescription
article.createdNew article published
article.updatedArticle content changed
article.deletedArticle removed
search.performedUser searched (aggregated)

Setup

Create a Webhook

  1. Go to Settings > Webhooks
  2. Click "Add Webhook"
  3. Enter your endpoint URL
  4. Select events to subscribe to
  5. Save

Verify Signature

We sign all webhooks with HMAC-SHA256:

const crypto = require('crypto');

function verifySignature(payload, signature, secret) {
  const expected = crypto
    .createHmac('sha256', secret)
    .update(payload)
    .digest('hex');
  
  return crypto.timingSafeEqual(
    Buffer.from(signature),
    Buffer.from(expected)
  );
}

Payload Format

{
  "event": "article.created",
  "timestamp": "2024-01-15T10:00:00Z",
  "data": {
    "article": {
      "id": "abc123",
      "title": "New Article",
      "slug": "new-article"
    }
  }
}

Retry Policy

Failed webhooks are retried:

  • 3 attempts with exponential backoff
  • After 3 failures, webhook is disabled
  • Email notification sent to admins
Webhooks - kb.chat | Demo KB