Skip to main content

Sentry Integration

Dispatch integrates with Sentry to receive webhook events for issues, errors, alerts, and AI autofix (Seer) activity.

Connecting Sentry​

Sentry webhooks are sent from an internal integration in your Sentry organization. Sentry signs every delivery with that integration's Client Secret, so that's the value you paste into Dispatch.

In Dispatch​

  1. Go to Sources → Add Source → Sentry
  2. On Connect Sentry webhooks, click Generate webhook URL
  3. Copy your webhook URL. Keep this screen open: you'll paste the client secret here in a moment.

In Sentry​

  1. Go to Settings → Developer Settings → New Internal Integration
  2. Paste your Dispatch webhook URL into Webhook URL
  3. Turn on webhooks and enable the resource types you want (Issues, Errors, Comments, etc.), then save
  4. At the bottom of the integration's page, under Credentials, copy the Client Secret

Paste your client secret, then finish​

  1. Back in Dispatch, paste the client secret into the field under Paste your Sentry client secret. Dispatch saves it as soon as you leave the field, so a webhook Sentry sends right away already verifies.
  2. Click Done, or press Enter in the field. Done is available once a client secret is entered. If the secret can't be saved, the setup stays open and tells you why, so you can try again — unless you closed the dialog while it was saving, in which case the dialog closes and the unfinished source is removed.

Dispatch auto-detects Sentry payloads by the presence of the sentry-hook-resource header, so no manual provider selection is required.

Supported Sentry Events​

The event type is extracted from the sentry-hook-resource header combined with the action field in the payload (e.g., issue.created, metric_alert.critical).

ResourceActions
Issuescreated, resolved, assigned, ignored, archived, unresolved, deleted
Errorscreated
Metric Alertscritical, warning, resolved
Issue Alertstriggered
Commentscreated, updated, deleted
Installationcreated, deleted
Seer (AI Autofix)root_cause_started, root_cause_completed, solution_started, solution_completed, coding_started, coding_completed, pr_created

Signature Verification​

Sentry signs webhook payloads with HMAC-SHA256. The signature is sent in the sentry-hook-signature header. Dispatch verifies this automatically when a signing secret is configured on the endpoint.

sentry-hook-signature: <hmac-sha256-hex>
sentry-hook-resource: issue

A source with no signing secret does not accept unsigned deliveries. If you have not configured a signing secret, every request must carry a project API key, or the source must be explicitly marked Public in its settings. For local development without a secret, mark the source as public.

If the client secret changes​

If you rotate the integration's client secret in Sentry, or deliveries are rejected because the saved secret doesn't match, you don't need a new source:

  1. On the Sources page, open Edit Source on the Sentry source
  2. Paste the current client secret from Sentry into Sentry client secret
  3. Click Save

Deliveries verify against the new secret from then on, and your webhook URL stays the same.

Auto-Formatted Embeds​

When no custom template is assigned, Dispatch auto-detects Sentry payloads and generates specialized embeds:

Issue Events​

  • Shows the short ID, error title, culprit location, level, status, and priority
  • First seen / last seen timestamps
  • Color-coded by severity: red (error/fatal), orange (warning), blue (info), gray (debug/archived), green (resolved)

Error Events​

  • Shows exception type and value, culprit location, platform, and linked issue
  • Color-coded by severity level

Metric Alert Events​

  • Shows alert rule name, trigger description, affected projects, metric aggregate, and time window
  • Color-coded: red (critical), orange (warning), green (resolved)

Issue Alert (Event Alert) Events​

  • Shows the alert rule name that fired, the triggering error title and culprit, and the linked issue
  • Orange color to indicate an active alert

Comment Events​

  • Shows the comment text (truncated), author, and linked issue ID
  • Blue for created/updated, gray for deleted

Seer AI Autofix Events​

  • Tracks each stage of the Seer autofix pipeline
  • For completed stages, shows the root cause description, solution summary, or code changes with branch names and PR links

Disconnecting​

To stop receiving Sentry webhooks:

  1. In your Sentry integration settings, remove or disable the webhook URL
  2. In Dispatch, deactivate or delete the endpoint