WorkOS source
Receive WorkOS webhook events in Knock to trigger workflows and automate actions based on directory sync and SSO events.
The WorkOS source enables you to receive WorkOS webhook events directly in Knock. WorkOS sends webhook callbacks when events occur in your enterprise integrations, such as a user being provisioned via directory sync or an SSO connection being activated. Knock verifies each payload using your WorkOS webhook signing secret, identifies the event type, and executes the actions you configure.
This integration is useful for automating provisioning and access workflows: identifying users in Knock when they are provisioned through a directory, notifying admins about SSO configuration changes, or triggering onboarding workflows when new directory users appear.
Prerequisites
#- A Knock account with at least one environment configured.
- A WorkOS account with access to the Webhooks settings in the WorkOS dashboard.
Getting started
#Once configured, WorkOS sends webhook events to Knock in real time. You can verify that events are arriving by checking the event logs on the source environment page.
Pre-configured events
#WorkOS sends events for directory sync and SSO lifecycle changes. Below are common events you might map to actions in Knock. You can enable or disable individual event types from the source environment configuration.
See the WorkOS events documentation for the full list of available events.
Customization
#You can modify the default action mappings or add new ones for any event type Knock receives from WorkOS. For details on how field mapping works with dot-notation paths, see the HTTP source page.
If you need to map WorkOS events to actions beyond triggering workflows, see the full list of available actions in the sources overview.
Event idempotency
#Knock automatically configures idempotency for the WorkOS source so duplicate events are not processed twice. By default, Knock uses [IDEMPOTENCY_KEY_PATH] from the WorkOS webhook payload as the idempotency key.
You can change the idempotency key field or disable idempotency checks from the Settings tab in your source environment configuration. Events without an idempotency key attribute are processed normally.
For details on how Knock handles idempotent events, key validation rules, and the default 24-hour idempotency window, see the source event idempotency section of the sources overview.