Skip to content
Telebugs Telebugs Self-hosted error tracking for your apps telebugs.com

Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The Telebugs Manual

Webhooks

Send POST to services like Slack or Discord.

To configure:

  1. Go to Notification Configuration > Webhooks.
  2. Click Set up webhooks if this is your first time configuring the channel.
  3. Click Add webhook… below Destinations. Enter a URL, an optional name, and the payload, then click Add.
  4. Use the test icon beside a destination to send a test notification.
  5. Use its edit icon to change the configuration. Cancel discards the draft; Save applies it. The delete icon removes that destination from all projects after confirmation.

A new webhook is enabled for all existing projects. Adjust destinations in each project’s notification settings. Allow webhook notifications controls automatic delivery for all projects without changing their individual preferences. When off, the note below the switch confirms that automatic notifications are paused. You can still add, edit, remove, and test destinations without turning delivery back on.

The test icon shows a spinner while sending and a checkmark beside it when the endpoint accepts the notification. If the test fails, the error stays below the destination so you can correct it and try again.

Add Webhook Form

  • Webhook URL: Public endpoint.
  • Name: Optional.
  • Template: Slack, Discord, Teams, or Custom. Choosing a template replaces the payload in the dialog.
  • Payload: JSON with placeholders. Open Allowed keys for the available notification details.

Placeholders

PlaceholderDescriptionExample
{{project_name}}The name of the project where the error occurred.Backend, example.com
{{trigger}}The event that caused the notification or error alert."error", "reoccurrence", "error frequency exceeded"
{{subject}}A short description of the error or affected part of the code.NoMethodError in ScoresController#create, Error in Thread.java
{{culprit}}The specific method, function, or code location responsible for the error.ScoresController#create
{{location}}The file or line number where the error originated.app/controllers/scores_controller.rb:42
{{error_type}}The class or type of the error.NoMethodError, Error, Exception
{{error_message}}The detailed message associated with the error.undefined method '+' for nil, division by zero
{{project_url}}A link to the project’s dashboard in Telebugs.https://telebugs.example.com/projects/7
{{view_url}}A link to view the specific error instance in Telebugs.https://telebugs.example.com/errors/107

Slack Setup

In Slack: Channel > Integrations > Incoming Webhooks > Add to Slack > Copy URL.

In Telebugs: Use Slack template, paste URL.

Slack and other notification webhooks respect the project’s severity setting. Enable Only notify for fatal and error events under the project’s Notifications settings to keep lower-severity reports out of the channel.

Example payload:

{
  "username": "Telebugs",
  "text": "{{project_name}}: {{trigger}} - {{error_type}}: {{error_message}}",
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": "*{{trigger}}* from <{{project_url}}|{{project_name}}>\n\n*{{error_type}}{{culprit}}*\n{{error_message}}\n\n*Location*\n{{location}}"
      }
    },
    {
      "type": "actions",
      "elements": [
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text": "View"
          },
          "url": "{{view_url}}"
        }
      ]
    }
  ]
}

Discord Setup

In Discord: Server Settings > Integrations > Create Webhook > Copy URL.

In Telebugs: Use Discord template, paste URL.

Example payload:

{
  "content": "**{{trigger}}** from [{{project_name}}]({{project_url}})\n[View error]({{view_url}})",
  "embeds": [
    {
      "color": 16711680,
      "fields": [
        {
          "name": "{{error_type}}{{culprit}}",
          "value": "{{error_message}}"
        },
        {
          "name": "Location",
          "value": "{{location}}"
        }
      ]
    }
  ]
}

Microsoft Teams Setup

Microsoft Teams supports rich notifications via Incoming Webhooks using Adaptive Cards.

Create Webhook in Teams

  1. In Microsoft Teams, go to the channel where you want notifications.
  2. Click More options (•••) next to the channel name.
  3. Select Manage channel > Edit.
  4. Search for Incoming Webhook and select Add (or Configure if already added).
  5. Enter a name (e.g., “Telebugs”) and optionally upload an image.
  6. Click Create.
  7. Copy the generated webhook URL and click Done.

In Telebugs: Use Teams template, paste URL.

Example payload:

{
  "type": "message",
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.adaptive",
      "content": {
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "type": "AdaptiveCard",
        "version": "1.4",
        "body": [
          {
            "type": "TextBlock",
            "text": "**{{trigger}}** from [{{project_name}}]({{project_url}})",
            "wrap": true,
            "size": "Medium",
            "weight": "Bolder"
          },
          {
            "type": "TextBlock",
            "text": "**{{error_type}}{{culprit}}**",
            "wrap": true,
            "spacing": "Small"
          },
          {
            "type": "TextBlock",
            "text": "{{error_message}}",
            "wrap": true,
            "spacing": "None"
          },
          {
            "type": "TextBlock",
            "text": "**Location**",
            "wrap": true,
            "spacing": "Medium"
          },
          {
            "type": "TextBlock",
            "text": "{{location}}",
            "wrap": true,
            "spacing": "None"
          }
        ],
        "actions": [
          {
            "type": "Action.OpenUrl",
            "title": "View Error",
            "url": "{{view_url}}"
          }
        ]
      }
    }
  ]
}

This payload creates a formatted card with bold trigger/project, error details, location, and a View Error button.

Custom Webhooks

Use Custom template. Build your JSON with placeholders.

Example:

{
  "project_name": "{{project_name}}",
  "trigger": "{{trigger}}",
  "subject": "{{subject}}",
  "culprit": "{{culprit}}",
  "location": "{{location}}",
  "error_type": "{{error_type}}",
  "error_message": "{{error_message}}",
  "view_url": "{{view_url}}"
}