> For the complete documentation index, see [llms.txt](https://docs.betterbugs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.betterbugs.io/product-features/integrations/webhook/updates.md). Agents can also search and read this documentation through its [MCP server](https://docs.betterbugs.io/~gitbook/mcp).

# Updates

The new version of BetterBugs webhooks adds signed requests, a delivery log, scheduled retries, multiple webhooks per workspace, and safer handling of failing endpoints.

## Webhook: What's New (November 2026 onwards)

This page lists every change compared with the existing (until November 2026) BetterBugs Webhook version, and what it means for you and for your receiving endpoint.

<table><thead><tr><th width="129.25">EVENT</th><th width="146.5">PAYLOAD</th><th width="228.5">NEW HEADERS</th><th>ACTION NEEDED</th></tr></thead><tbody><tr><td>Bug created</td><td>Unchanged</td><td><strong><code>X-BetterBugs-Delivery</code></strong>, <strong><code>X-BetterBugs-Signature</code></strong></td><td>None (signing is opt-in)</td></tr></tbody></table>

### BetterBugs Webhooks: Updates at a Glance

<table><thead><tr><th width="215.75">AREA</th><th>BEFORE</th><th>NOW</th></tr></thead><tbody><tr><td><strong>Webhooks per scope</strong></td><td>One for the workspace and one per project. If both used the same URL, only one received the event.</td><td>Any number of webhooks. Each active webhook that covers the project gets its own delivery.</td></tr><tr><td><strong>Scope</strong></td><td>The whole workspace or a single project.</td><td>The whole workspace, or any set of projects (one webhook can cover several projects).</td></tr><tr><td><strong>Name</strong></td><td>Webhooks were identified by URL only.</td><td>Optional name, up to 100 characters (for example "Bugs to Zapier").</td></tr><tr><td><strong>Request signing</strong></td><td>None.</td><td><strong><code>HMAC-SHA256</code></strong> signature in <strong><code>X-BetterBugs-Signature</code></strong> , with secret rotation.</td></tr><tr><td><strong>Delivery history</strong></td><td>None visible to users.</td><td>Delivery log with request, response, every attempt, filters and Resend. Kept for 30 days.</td></tr><tr><td><strong>Retries</strong></td><td>Up to 3 immediate retries. Retries were sent without custom headers and always as JSON.</td><td>3 retries after 1 min, 5 min and 30 min. Each retry uses the webhook's current URL, headers and format.</td></tr><tr><td><strong>Timeout</strong></td><td>No limit.</td><td>10 seconds per attempt. Any <strong><code>2xx</code></strong> response counts as delivered.</td></tr><tr><td><strong>Duplicates</strong></td><td>The same bug could be sent more than once when its files were processed again.</td><td>Each bug is sent once per webhook. Retries carry the same <strong><code>X-BetterBugs-Delivery</code></strong> ID.</td></tr><tr><td><strong>Auto turn-off</strong></td><td>Turned off silently after more than 15 failures in a row or 100 in total.</td><td>Turned off after 24 hours of failures (at least 3 failed attempts) with no success. The creator gets an email.</td></tr><tr><td><strong>Turning back on</strong></td><td>Could be turned on with no check.</td><td>A webhook turned off for failing is turned back on only if its URL answers with a <strong><code>2xx</code></strong>.</td></tr><tr><td><strong>Pausing</strong></td><td>Not available when adding a webhook.</td><td>Add a webhook as Active or Paused, and pause or resume it at any time.</td></tr><tr><td><strong>Verify button</strong></td><td>Sent the sample without custom headers, always as <strong><code>JSON</code></strong>.</td><td>Sends the sample with the form's headers and format, shows status, time and response, and logs it as a test.</td></tr><tr><td><strong>Redirects</strong></td><td>Followed without checks.</td><td>Up to 3, <strong><code>https</code></strong> only, never to private addresses. Headers and signature are dropped if the redirect goes to another host.</td></tr><tr><td><strong>Private addresses</strong></td><td>Not blocked.</td><td><strong><code>URLs</code></strong> that point to private, internal or cloud-metadata addresses are refused.</td></tr><tr><td><strong>Projects deleted</strong></td><td>The webhook stayed on a project that no longer existed.</td><td>The project is removed from the webhook's scope. If it was the only one, the webhook is turned off and marked "Project deleted".</td></tr><tr><td><strong>Creator leaves</strong></td><td>No hand-over.</td><td>Their webhooks keep sending and move to the workspace owner or the longest-standing admin.</td></tr></tbody></table>

### Multiple Webhooks and Multi-Project Scope <sup><mark style="color:$success;">new<mark style="color:$success;"></sup>

A workspace can now have as many webhooks as it needs. Every active webhook that covers a project receives each new bug from that project, even when two webhooks share the same URL. Your receiver can use **`X-BetterBugs-Delivery`** to tell deliveries apart.

* **Scope**: When you add or edit a webhook, choose **All projects** or pick one or more projects (up to 500). A workspace-wide webhook can still exclude individual projects.
* **Move a webhook**: Edit the scope to move a webhook between projects or to the whole workspace. Its delivery history stays with it.
* **Name**: Give each webhook an optional name so you can tell them apart in the list and in the delivery log.
* **List**: The webhook list now shows each webhook's name, scope, creator, status, last delivery and the date someone last edited it.

#### Who Can Manage Webhooks

<table><thead><tr><th width="276.7777099609375">WEBHOOK</th><th>WHO CAN ADD, EDIT, PAUSE OR DELETE IT</th></tr></thead><tbody><tr><td><strong>Workspace-wide (All projects)</strong></td><td>Workspace admins</td></tr><tr><td><strong>On one or more projects, created by you</strong></td><td>You, as long as you can open every project in its scope.</td></tr><tr><td><strong>On projects, created by someone else</strong></td><td>An admin of each of its projects, or a workspace admin.</td></tr><tr><td><strong>Any webhook</strong></td><td>Guests cannot manage webhooks.</td></tr></tbody></table>

### Signed Requests <sup><mark style="color:$success;">new<mark style="color:$success;"></sup>

A workspace admin can generate a **signing secret** in the webhook settings. From then on, every request BetterBugs sends to any webhook in the workspace carries a signature, so your endpoint can confirm the request came from BetterBugs and was not changed.

* The secret starts with **`whsec_`**.There is one secret per workspace, and it signs every webhook.
* Any member except guests can view the secret, so they can set up a receiver. Only workspace admins can generate, rotate or retire it.&#x20;
* Secrets are stored encrypted. The settings page shows the secret masked until you click **Reveal**.
* Signing is opt-in. A workspace without a secret keeps sending unsigned requests, exactly as before.

#### Header Format

```javascript
X-BetterBugs-Signature: t=1763025727,v1=5f2b0c…e91a
```

**`t`** is the Unix time in seconds when the request was signed. **`v1`** is the hex **`HMAC-SHA256`** of **`<t>.<raw request body>`**, using the secret as the key. The signature covers the exact bytes sent, for both JSON and Form Data.

#### Verifying a Request (Node.js)

```javascript
const crypto = require('crypto');

// rawBody: the request body exactly as received (Buffer or string), before any JSON parsing.
function isFromBetterBugs(rawBody, header, secret, toleranceSeconds = 300) {
  const parts = header.split(',');
  const t = Number(parts.find((p) => p.startsWith('t='))?.slice(2));
  const signatures = parts
    .filter((p) => p.startsWith('v1='))
    .map((p) => p.slice(3));

  if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) {
    return false;
  }

  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${t}.`)
    .update(rawBody)
    .digest('hex');

  // During a rotation the header holds two v1 values: accept if any matches.
  return signatures.some(
    (s) =>
      s.length === expected.length &&
      crypto.timingSafeEqual(Buffer.from(s), Buffer.from(expected))
  );
}
```

The time tolerance is your choice. Five minutes is a common default. Checking it stops someone from replaying an old request.

#### Rotating the Secret

1. Click **Rotate secret**. By default the old secret keeps signing for 24 hours alongside the new one, so the header carries two **`v1`** values.
2. Update your receiver with the new secret.
3. Click **Stop old secret now**, or let the 24 hours run out. You can also rotate without the 24-hour overlap if the old secret was exposed.

### Delivery Log <sup><mark style="color:$success;">new<mark style="color:$success;"></sup>

Every request BetterBugs sends is recorded in the **delivery log**, one row per bug per webhook. Open it from the webhook settings to see exactly what was sent and how your endpoint answered.

* **What each delivery shows**: Webhook, event, project, bug, URL, request headers (custom header values masked as **`••••••abcd`** ), request body, response status, the first 10 KB of the response body, error, duration, and every attempt with its time and result.
* **Filters**: Filter by webhook, by result, by event ( **`bug.created`** or **`test`** ) and by date range. Results are paginated.

<table><thead><tr><th width="194.5555419921875">RESULT</th><th>MEANING</th></tr></thead><tbody><tr><td><strong>PENDING</strong></td><td>Queued, first attempt not finished yet.</td></tr><tr><td><strong>RETRYING</strong></td><td>An attempt failed and another one is scheduled.</td></tr><tr><td><strong>DELIVERED</strong></td><td>The endpoint answered with a 2xx status.</td></tr><tr><td><strong>FAILED</strong></td><td>All attempts failed, or the request could not be sent (for example, a private address).</td></tr><tr><td><strong>TEST</strong></td><td>A Verify ping from the webhook form.</td></tr></tbody></table>

* **Resend**: Send any real delivery again as a new delivery, with its own retries. The webhook must be active and still cover the bug's project. Test pings cannot be resent.
* **Errors in plain words**: When there is no response, the log says why: Timeout, Couldn't find the host, Connection refused, TLS certificate error, The response was too large to read, or a redirect that was refused.&#x20;
* **Retention**: Deliveries are kept for 30 days.  &#x20;
* **Visibility**: Members see deliveries for webhooks they can see, and only for bugs in projects they can open.

### Retries and Timeouts <sup><mark style="color:violet;">changed<mark style="color:violet;"></sup>

Each delivery gets up to 4 attempts. An attempt succeeds when your endpoint answers with any 2xx status within 10 seconds. After a failure, BetterBugs waits before trying again:

<div data-with-frame="true"><figure><img src="https://3235868439-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBzBhuIUDDav7ztnadaoO%2Fuploads%2FCSkQoecSgYuo7Qqh8Wuc%2Fimage.png?alt=media&amp;token=c93d53fb-c767-45b2-9f25-287894f92445" alt=""><figcaption></figcaption></figure></div>

* Retries use the webhook **as it is now**. If you fix the URL, a header or the format while a delivery is retrying, the next attempt uses the fix.
* Retries stop if the webhook is deleted or paused, no longer covers the bug's project, or the bug is deleted.
* Requests to private or internal addresses are not retried, because retrying cannot help.
* Response bodies larger than 5 MB are not read. The attempt still counts.

### Request Headers <sup><mark style="color:violet;">changed<mark style="color:violet;"></sup>

<table><thead><tr><th width="267.888916015625">HEADER</th><th>VALUE</th></tr></thead><tbody><tr><td><strong><code>Content-Type</code></strong></td><td><strong><code>application/json</code></strong> , or <strong><code>multipart/form-data; boundary=…</code></strong> when the format is Form Data.</td></tr><tr><td><strong><code>X-BetterBugs-Delivery</code></strong> <sup><mark style="color:$success;">new</mark></sup></td><td>The delivery ID. It is the same on every retry, so your endpoint can ignore duplicates.</td></tr><tr><td><strong><code>X-BetterBugs-Signature</code></strong> <sup><mark style="color:$success;">new</mark></sup></td><td>Present when the workspace has a signing secret. See Signed requests.</td></tr><tr><td><strong>Your custom headers</strong></td><td>Sent on every attempt and every retry. Before, retries left them out.</td></tr></tbody></table>

### Failing Endpoints and Auto Turn-off <sup><mark style="color:violet;">changed<mark style="color:violet;"></sup>

1. The first failed attempt after a success starts a 24-hour clock. Any successful delivery resets it.
2. If the endpoint keeps failing for 24 hours, with at least 3 failed attempts, BetterBugs turns the webhook off and stops sending it events.
3. The webhook's creator gets one email, **`Webhook turned off: <name>`** . It shows the endpoint's host and the last error, with a link to the delivery log. If the creator has left the workspace, the email goes to the workspace owner.
4. Fix the endpoint, then choose **Resume webhook** from the webhook's menu. BetterBugs sends a signed check request to the URL first. If the URL does not answer with a 2xx, the webhook stays off and you see ***The webhook URL did not respond, so it was not reactivated***.

{% hint style="info" icon="lightbulb" %}
**PRO TIP**

You can fix the URL or add a missing auth header and resume in the same save. The check uses the values you are saving.
{% endhint %}

Turning a webhook back on clears its failure history, so it starts fresh. Webhooks you pause yourself are not checked when you resume them.

### Verify (test connection) <sup><mark style="color:violet;">changed<mark style="color:violet;"></sup>

* The sample request now includes the **custom headers and payload format** currently in the form. An endpoint that needs an **`Authorization`** header no longer fails with 401 during Verify.
* The result shows the response status code, how long the request took and the response body.
* When you verify a saved webhook, the ping appears in its delivery log with the result <mark style="color:blue;background-color:violet;">**TEST**</mark>.
* The ping is signed when you are allowed to see the signing secret. For guests it is sent unsigned.
* The sample payload is the same as before.

### Endpoint Safety <sup><mark style="color:$success;">new<mark style="color:$success;"></sup>

* **https only**: Webhook URLs must use https, both when adding a webhook and when editing one.
* **No private addresses:** BetterBugs will not connect to loopback, private, link-local, carrier-grade NAT or cloudmetadata addresses (for example **`127.0.0.1`** , **`10.0.0.0/8`** , **`192.168.0.0/16`** , **`169.254.169.254`** ), for IPv4 and IPv6. The check runs on the address actually used for the connection, so DNS tricks cannot get around it. The log shows ***The webhook URL points to a private or internal network address, so the request wasn't sent.***&#x20;
* **Safe redirects**: Up to 3 redirects are followed, so trailing-slash redirects, moved domains and Google Apps Script's 302 keep working. A redirect is refused if it leaves https or leads to a private address. If a redirect goes to a different host, your custom headers and the signature are removed so they only reach the host you saved.

### Lifecycle Rules <sup><mark style="color:$success;">new<mark style="color:$success;"></sup>

1. **A project is deleted**: The project is removed from every webhook that covers it. A webhook whose only project was deleted is turned off and marked **Project deleted**. Workspace admins can give it a new scope and turn it back on, or delete it.
2. **A webhook's creator leaves**: Their webhooks keep sending. Ownership moves to the workspace owner, or to the longest-standing workspace admin who stays.
3. **A bug is deleted before sending**: Nothing is sent for it, and no "bug deleted" event is sent.
4. **A webhook is added later**: Bugs created before the webhook was added are not replayed to it.

### What's Not Changed

* The trigger is still a new bug report (event **`bug.created`** ). The payload does not include an event field.
* **The payload fields are the same**: **`customFields`** , **`bugId`** , **`projectId`** , **`workspaceId`** , **`userId`** , **`bugReporterEmail`** , **`title`** , **`description`** , **`status`** , **`priority`** , **`type`** , **`createdAt`** , **`updatedAt`** , **`metadata`** , **`assignees`** , **`sessionUrl`** , and **`screenshotUrl`** for screenshots or **`recordingUrl`** for screen recordings.

### For developers: new API routes

All routes are under **`/workspace/:workspaceId/webhook`**

<table><thead><tr><th width="337.888916015625">ROUTE</th><th>WHAT IT DOES</th></tr></thead><tbody><tr><td><strong><code>GET /count</code></strong></td><td>Number of webhooks the member can see.</td></tr><tr><td><strong><code>GET /signing-secret</code></strong></td><td>The signing secret, masked, with rotation status.</td></tr><tr><td><strong><code>GET /signing-secret/reveal</code></strong></td><td>The full secret. Not available to guests.</td></tr><tr><td><strong><code>POST /signing-secret</code></strong></td><td>Generate the secret. Workspace admins only.</td></tr><tr><td><strong><code>POST /signing-secret/rotate</code></strong></td><td><p>Rotate. </p><p>Body <strong><code>{ "keepOld": true }</code></strong> keeps the old secret for 24 hours (the default).</p></td></tr><tr><td><strong><code>POST /signing-secret/expire-old</code></strong></td><td>Stop the old secret now.</td></tr><tr><td><strong><code>GET /deliveries</code></strong></td><td><p>Delivery log. </p><p>Filters: <strong><code>webhookId</code></strong> , <strong><code>result</code></strong> , <strong><code>event</code></strong> , <strong><code>startDate</code></strong> , <strong><code>endDate</code></strong> , plus pagination.</p></td></tr><tr><td><strong><code>GET /deliveries/:deliveryId</code></strong></td><td>One delivery with request and response bodies and all attempts.</td></tr><tr><td><strong><code>POST /deliveries/:deliveryId/resend</code></strong></td><td>Send a delivery again as a new delivery.</td></tr></tbody></table>

#### Changed Request Bodies

create and update accept **`name`** , **`projectIds`** (an empty array or null means the whole workspace; it takes precedence over **`projectId`** ) and **`webhookStatus`** ( **`ACTIVE`** or **`INACTIVE`** ).&#x20;

**`POST /testconnection`** accepts **`webhookId`** , **`headers`** and **`isFormDataAsResponse`** , and its response now includes **`statusCode`** , **`durationMs`** , **`responseData`** and **`deliveryId`**.

{% hint style="info" icon="keyboard-brightness" %}
**NOTE**

Existing webhooks keep working without changes. Their URL, headers, custom fields and format are kept, and they are not signed until a workspace admin generates a signing secret.
{% endhint %}
