# Trigger.dev webhooks

Trigger.dev webhooks are signed JSON `POST` requests that Trigger.dev sends to your URL when a run fails, a deployment fails or succeeds, or an error group alert fires.

These pages cover the alerts Trigger.dev sends to you. To receive other services' webhooks in your tasks, see Trigger.dev's [Webhooks docs](https://trigger.dev/docs/webhooks/overview), a separate feature in public beta.

Agent skill: `npx skills add hookdeck/webhook-skills --skill trigger-dev-webhooks` ([details](https://hookdeck.com/webhooks/trigger-dev/skill))

> Independent reference generated from hookdeck/webhook-registry (commit ff7f882, 20 Nov 2026). [Trigger.dev's official docs](https://github.com/triggerdotdev/trigger.dev/blob/main/packages/trigger-sdk/src/v3/webhooks.ts).

[Overview](https://hookdeck.com/webhooks/trigger-dev) · [Webhook events (4)](https://hookdeck.com/webhooks/trigger-dev/events) · [MCP events](https://hookdeck.com/webhooks/trigger-dev/mcp-events) · [Verify signatures](https://hookdeck.com/webhooks/trigger-dev/verify) · [Production guide](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts) · [Agent skill](https://hookdeck.com/webhooks/trigger-dev/skill)

## Key facts

| Fact | Value | Source |
|---|---|---|
| Signature header | `x-trigger-signature-hmacsha256` Format: <lowercase hex> | [Trigger.dev source](https://github.com/triggerdotdev/trigger.dev/blob/main/packages/trigger-sdk/src/v3/webhooks.ts) |
| Scheme | `HMAC-SHA256` | [Trigger.dev source](https://github.com/triggerdotdev/trigger.dev/blob/main/packages/trigger-sdk/src/v3/webhooks.ts) |
| Signed material | `{raw body}` The request body exactly as sent, with no timestamp or prefix added. Re-serialised JSON will not verify. | [Trigger.dev source](https://github.com/triggerdotdev/trigger.dev/blob/main/packages/trigger-sdk/src/v3/webhooks.ts) |
| How events are identified | `type field in the body` | [Trigger.dev docs](https://trigger.dev/docs/troubleshooting-alerts#common-properties) |
| Body format | `JSON` Content type: application/json. | [Trigger.dev source](https://github.com/triggerdotdev/trigger.dev/blob/main/apps/webapp/app/v3/services/alerts/alertTransport.server.ts) |
| API versioning | `webhookVersion in the body` | [Trigger.dev docs](https://trigger.dev/docs/troubleshooting-alerts#common-properties) |
| Other headers | `content-type` | [Trigger.dev source](https://github.com/triggerdotdev/trigger.dev/blob/main/packages/trigger-sdk/src/v3/webhooks.ts) |
| Envelope | `id, created, webhookVersion, type, object` | [Trigger.dev docs](https://github.com/triggerdotdev/trigger.dev/blob/main/packages/trigger-sdk/src/v3/webhooks.ts) |
| Agent skill | `npx skills add hookdeck/webhook-skills --skill trigger-dev-webhooks` | [Agent skill →](https://hookdeck.com/webhooks/trigger-dev/skill) |

[Verify Trigger.dev webhooks](https://hookdeck.com/webhooks/trigger-dev/verify)

## How Trigger.dev webhooks work

Alert webhooks push failures and deployment results to your incident tooling as they happen, so you don't have to poll for failed runs. They cover alerts only: no webhook fires when a run starts or succeeds. Trigger.dev sends a `POST` to each matching webhook alert, and its code counts any 2xx as delivered.

`type` says which alert fired, and `object` holds its data: the task and run, the deployment or the error group, plus `environment`, `organization` and `project`. Every body also has `id`, `created` and `webhookVersion`. The docs show no version value and no example body. Trigger.dev's code sends `v1` on run and deployment alerts and `2025-01-01` on `alert.error`.

## Setting up Trigger.dev webhooks

- In your project, click Alerts, then New alert. Choose webhook, enter your URL, pick from a run fails, a deployment fails and a deployment succeeds, then copy the secret from the Alerts page.
- Error group alerts are created separately, from Configure alerts on the Errors page, and then appear in the same Alerts table.
- Trigger.dev's code refuses private and loopback addresses, so test through a public URL. `hookdeck listen 3000 trigger-dev --path /webhooks/trigger-dev` gives you one and forwards requests to your machine.
- Trigger.dev documents no test send or resend. Make a real run fail in a staging or preview environment, and after an outage list failed runs with the [runs API](https://trigger.dev/docs/management/runs/list).

## Delivery behaviour

- **Timeout:** 5 seconds. in Trigger.dev's [delivery code](https://github.com/triggerdotdev/trigger.dev/blob/main/apps/webapp/app/v3/services/alerts/alertTransport.server.ts); its docs don't state one. [Guide](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#timeouts)
- **Retries:** up to 3 attempts. a few seconds apart, in its [worker config](https://github.com/triggerdotdev/trigger.dev/blob/main/apps/webapp/app/v3/alertsWorker.server.ts); `401`, `403`, `404` and `410` aren't retried. [Guide](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#retries)
- **After retries:** no resend. none is documented, so list failed runs from the API after an outage. [Guide](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#retries)
- **Duplicates:** possible. a retry can repeat an alert you handled, and `alert.error` gets a new `id` each attempt. [Guide](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#duplicates)

## Known failure modes

1. **Error group alerts go quiet.** After an error group alert fires, the group stays Unresolved and silent however often the error recurs. Add a run fails alert to hear about every failed run. [Choose alert types](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#choosing-events)
2. **A short outage loses alerts.** Trigger.dev's code makes up to 3 attempts a few seconds apart and doesn't retry a `401`, `403`, `404` or `410`. Keep email or Slack alerts on as a backup, and list failed runs from its API after an outage. [Handle retries](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#retries)
3. **Retried error alerts get a new id.** `alert.error` gets a new `id` on each attempt, so deduplicating on `id` misses its retries. Key on `object.error.fingerprint`, `object.classification` and `object.error.lastSeen` instead. [Handle duplicates](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#duplicates)
4. **The SDK rejects types it doesn't know.** `webhooks.constructEvent` checks the body against a fixed list of alert types and throws `WebhookError` on anything else. Keep the SDK current, or verify by hand if you need to accept unknown types. [Other Trigger.dev limits](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#other-limits)

From [Hookdeck's Trigger.dev guide](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts).

## Trigger.dev webhook best practices

- **[Verify every signature](https://hookdeck.com/webhooks/trigger-dev/verify).** Check `x-trigger-signature-hmacsha256` against the raw body. Without it, anyone who finds your URL can send a fake alert and page your team.
- **[Return a 2xx within 5 seconds](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#timeouts).** Store the alert and respond before you open a ticket or post to chat, so a slow handler doesn't use up one of its 3 attempts.
- **[Use the right deduplication key](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#duplicates).** `id` repeats across retries on run and deployment alerts. On `alert.error` it changes, so key on `object.error.fingerprint`, `object.classification` and `object.error.lastSeen`.
- **[Keep a second alert channel](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#retries).** Keep email or Slack alerts on for what matters most, since a webhook gets only 3 attempts and no documented resend.
- **[Pair run fails with error group alerts](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#choosing-events).** A run fails alert covers every failed run. An error group alert tells you when something new breaks, then stays quiet.
- **[Route by environment](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts#choosing-events).** Use `object.environment.type` to treat `PRODUCTION` differently from `STAGING` and `PREVIEW`. `alert.error` has only the environment's `id` and `name`.

## Common Trigger.dev webhook events

### Runs and errors

- [alert.run.failed](https://hookdeck.com/webhooks/trigger-dev/events#alert.run.failed): Run fails after exhausting its retries
- [alert.error](https://hookdeck.com/webhooks/trigger-dev/events#alert.error): Error group is new, regresses or breaches its ignore condition

### Deployments

- [alert.deployment.failed](https://hookdeck.com/webhooks/trigger-dev/events#alert.deployment.failed): Deployment fails, with its error name and message
- [alert.deployment.success](https://hookdeck.com/webhooks/trigger-dev/events#alert.deployment.success): Deployment completes, listing its deployed tasks

## Events by resource

| Resource | Events | Payloads |
|---|---|---|
| [alert](https://hookdeck.com/webhooks/trigger-dev/events#resource-alert) | 4 | 0 |

[All 4 events](https://hookdeck.com/webhooks/trigger-dev/events)

## In this hub

- [Webhook events](https://hookdeck.com/webhooks/trigger-dev/events): Every covered Trigger.dev event, with payloads where the registry has them.
- [MCP events](https://hookdeck.com/webhooks/trigger-dev/mcp-events): How an agent subscribes to Trigger.dev events as MCP events.
- [Verify signatures](https://hookdeck.com/webhooks/trigger-dev/verify): Signature facts, verification code and common failures.
- [Production guide](https://hookdeck.com/webhooks/trigger-dev/guide-duplicates-retries-timeouts): Production problems, such as timeouts and retries, and how to handle them.
- [Agent skill](https://hookdeck.com/webhooks/trigger-dev/skill): Install the webhook skill in your coding agent. `npx skills add hookdeck/webhook-skills --skill trigger-dev-webhooks`
---

Not affiliated with Trigger.dev. Facts are compiled from public sources and linked inline. [View as JSON](https://hookdeck.com/webhooks/trigger-dev.json) · [Report a correction](https://hookdeck.com/contact)
