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.
Event Types
Learn about the different webhook events you can subscribe to.
Security
Understand webhook security measures and best practices.
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.
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"]}'
const webhook = {
url: 'https://example.com/webhook',
events: ['doc.updated', 'doc.created']
};
fetch('https://api.bedi-line2.com/webhooks', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(webhook)
});
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.
| Event | Description |
|---|---|
doc.created | Fired when a new document is created |
doc.updated | Fired when a document is modified |
doc.deleted | Fired when a document is removed |
Events related to user actions.
| Event | Description |
|---|---|
user.login | Fired when a user logs in |
user.logout | Fired when a user logs out |
user.created | Fired when a new user account is created |
Security and Best Practices
Implement security measures to protect your webhook endpoints.
Last updated today