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

Set up WorkOS

  1. Start trigger dev or deploy, then copy the endpoint’s Webhook URL from the Webhooks page.
  2. 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.
  3. Copy the signing secret WorkOS shows for the webhook, then choose Set signing secret on the Trigger.dev endpoint.
  4. 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.