AdvancedWebhooks
Advanced

Webhooks

Set up webhooks to automate workflows and integrate with external systems

Introduction to Webhooks

Webhooks enable real-time communication between the Annu Gulati Documentation platform and your external systems. By configuring webhooks, you can automate processes like notifications, data synchronization, and workflow triggers whenever documentation events occur.

Supported Events

Our webhook system supports various documentation events to trigger actions in your integrated systems.

Events related to document creation, updates, and deletion.

Create Webhook

Navigate to project settings and create a new webhook endpoint.

Select Events

Choose which events should trigger the webhook.

Configure Payload

Customize the webhook payload format and include relevant data.

Test Webhook

Send a test payload to verify your endpoint is working correctly.

Webhook payloads are sent as JSON with detailed information about the event, including timestamps, user information, and changed content.

Security and Best Practices

Ensure your webhook endpoints are secure and reliable.

Example Implementation

Here's how to implement a webhook handler in different programming languages.

const express = require('express');
const crypto = require('crypto');

const app = express();
app.use(express.json());

app.post('/webhook', (req, res) => {
const signature = req.headers['x-annugulati-signature'];
const body = JSON.stringify(req.body);
const expectedSignature = crypto
  .createHmac('sha256', process.env.WEBHOOK_SECRET)
  .update(body)
  .digest('hex');

if (signature !== expectedSignature) {
  return res.status(401).send('Invalid signature');
}

console.log('Webhook received:', req.body);
res.status(200).send('OK');
});

app.listen(3000, () => console.log('Webhook server running'));
2024-07-15Webhook Enhancement
featureimprovement

New Features

  • Added support for custom webhook headers
  • Implemented webhook delivery retry logic
  • Enhanced payload customization options

Improvements

  • Improved webhook signature verification
  • Added webhook delivery status tracking
Was this page helpful?
Built with Documentation.AI

Last updated today