Skip to Content
ProvidersBuilt-in providers

Sentry webhooks

Receive and verify Sentry webhooks with Trigger.dev. Check the HMAC-SHA256 signature in sentry-hook-signature and run a task for each Sentry event, filtered on header.sentry-hook-resource.

webhooks.sentry() verifies the HMAC-SHA256 signature Sentry sends in sentry-hook-signature on every request.

/trigger/sentry.ts
import { ,  } from "@trigger.dev/sdk";

export const sentry = ..define({
  : "sentry",
  : .sentry(),
});

export const sentryEvents = ({
  id: "sentry-events",
  : sentry,
  : async ({  }) => {
    .();
  },
});

To run a subscriber only for some events, add a filter on header.sentry-hook-resource.

SettingValue
Sourcewebhooks.sentry()
VerificationHMAC-SHA256 in sentry-hook-signature
CredentialThe integration's Client Secret, issued by Sentry
Event typeheader.sentry-hook-resource
Sentry docsSentry webhook docs

Set up Sentry

  1. Start trigger dev or deploy, then copy the endpoint's Webhook URL from the Webhooks page.
  2. In Sentry, open Settings > Developer Settings > Custom Integrations and create an internal integration. Set its Webhook URL to the webhook URL, turn on alert rule action if you want alerts, and enable the resource types (such as issue, error or comment) your subscribers need.
  3. Sentry signs webhooks with the integration's Client Secret. Copy it from the integration's page, then choose Set signing secret on the Trigger.dev endpoint.
  4. Send a test event from Sentry, or use the endpoint's Test tab, and check the endpoint's Deliveries tab. See Verify the connection if nothing arrives.

Was this page helpful?

Last updated

Edit on GitHub

On this page