Skip to main content
webhooks.metronome() verifies the HMAC-SHA256 signature Metronome sends in metronome-webhook-signature on every request.
/trigger/metronome.ts
To run a subscriber only for some events, add a filter on event.type.

Set up Metronome

  1. Start trigger dev or deploy, then copy the endpoint’s Webhook URL from the Webhooks page.
  2. In the Metronome app, go to Developer > Notifications > Webhooks > Add and enter the webhook URL.
  3. Copy the webhook’s secret key, then choose Set signing secret on the Trigger.dev endpoint.
  4. Create the notifications your subscribers need, such as a low credit balance alert, under Developer > Notifications > Create Notification.
  5. Send a test event from Metronome, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.