8.3 Using webhooks

Webhooks in Telebugs enable real-time notifications to be sent to external services whenever specific events occur, such as a new error being reported, an error reoccurring, or the error frequency exceeding a set threshold. This feature allows integration with tools like Slack, Discord, or any custom endpoint that accepts HTTP POST requests.

Once webhooks are configured globally, individual projects can opt to use them or disable them via project settings. After setup, project-level rules dictate when notifications are sent to the configured webhook URLs.

You can configure webhooks to trigger under these conditions:

Follow these steps to configure webhook notifications:

  1. Open the menu in the top-right corner, click your profile name, and select Notification Configuration.
    Notification Configuration menu item
  2. In the sidebar on the left, select Webhooks.
    Webhooks notification channel selected
  3. Click the Create Configuration button to begin adding a new webhook.
    Create Configuration button
  4. Complete the Add a new webhook form with details such as the webhook URL, name, template type, and template body, then click Save webhook to apply your settings.
    Add a new webhook form
  5. Once saved, the webhook appears in the Configured webhooks section.
    Configured webhooks section
  6. To verify the webhook, click the Test button next to it in the list. This sends a test payload to the specified URL.
    Test webhook button
  7. To edit a webhook, click its name in the Configured webhooks section.
    Edit webhook popup
  8. A popup appears, allowing you to modify the name and template body.
    Edit webhook popup with template body
  9. You can edit webhook URL and template body directly in the popup. Close the popup to save changes.
    Edit webhook URL and template body
  10. When a real error occurs, Telebugs sends a notification to the webhook URL based on the project settings, including details like the error message and a link to the error report.

Add a new webhook form

The Add a new webhook form defines the settings for each webhook. Complete the fields as follows:

Webhook template body placeholders

In the template body, use placeholders like {{key}} to insert dynamic values. The following keys are available:

Click the Help button next to the template body field for links to resources on webhooks, Slack, and Discord integration.