webhooks.mux() verifies the HMAC-SHA256 signature Mux sends in mux-signature on every request.
/trigger/mux.ts
Set up Mux
- Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - In the Mux webhook settings, select the environment your app uses and add the webhook URL. Mux sends every event in that environment.
- Copy that webhook’s signing secret, then choose Set signing secret on the Trigger.dev endpoint.
- Send a test event from Mux, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.

