webhooks.workos() verifies the HMAC-SHA256 signature WorkOS sends in workos-signature on every request.
/trigger/workos.ts
event.event.
Set up WorkOS
- Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - Add the webhook URL as a webhook in WorkOS and select the events your subscribers need. See WorkOS’s webhook docs for where its webhook settings are.
- Copy the signing secret WorkOS shows for the webhook, then choose Set signing secret on the Trigger.dev endpoint.
- Send a test event from WorkOS, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.

