AdvancedWebhooks
Advanced

Webhooks

Set up and manage webhooks for real-time notifications in Bedi Line2 documentation

Webhook Overview

Webhooks in Bedi Line2 enable real-time communication between your documentation platform and external services. When specific events occur, such as documentation updates or user actions, Bedi Line2 can send HTTP POST requests to configured URLs.

Setting Up Webhooks

Configure webhooks to receive notifications about documentation changes and system events.

Create Webhook

In your Bedi Line2 dashboard, navigate to the webhooks section and click "Create Webhook".

Configure URL

Enter the endpoint URL where you want to receive webhook notifications.

Select Events

Choose which events should trigger webhook notifications.

body
eventsarray
Required

Array of event types to subscribe to, e.g., ["doc.updated", "doc.created"].

curl -X POST https://api.bedi-line2.com/webhooks \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/webhook", "events": ["doc.updated"]}'

Test Webhook

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

Event Types

Bedi Line2 supports various webhook events for different types of notifications.

Events related to documentation changes.

EventDescription
doc.createdFired when a new document is created
doc.updatedFired when a document is modified
doc.deletedFired when a document is removed
Webhook payloads include detailed information about the event, including timestamps and relevant data.

Security and Best Practices

Implement security measures to protect your webhook endpoints.

Always validate webhook payloads and implement proper error handling to maintain system reliability.
Was this page helpful?
Built with Documentation.AI

Last updated today