Supabase source
Receive Supabase database webhook events in Knock to trigger workflows and automate actions based on row-level changes.
The Supabase source enables you to receive Supabase database webhook events directly in Knock. Supabase sends webhook callbacks when row-level changes occur in your database tables, such as inserts, updates, or deletes. Knock verifies each payload, identifies the event type, and executes the actions you configure.
This integration is useful for building notifications that react to database changes: alerting users when a record relevant to them is created, triggering workflows when data is updated, or automating cleanup actions when rows are deleted.
Prerequisites
#- A Knock account with at least one environment configured.
- A Supabase project with access to the Database Webhooks settings in the Supabase dashboard.
Getting started
#Once configured, Supabase sends webhook events to Knock when the specified database changes occur. You can verify that events are arriving by checking the event logs on the source environment page.
Pre-configured events
#Supabase database webhooks fire based on the table operations you select when creating the hook. The event types correspond to PostgreSQL triggers:
Each event payload includes the table name, the operation type, and the row data (both old and new values for updates). See the Supabase database webhooks documentation for payload structure details.
Customization
#You can modify the default action mappings or add new ones for any event type Knock receives from Supabase. For details on how field mapping works with dot-notation paths, see the HTTP source page.
If you need to map Supabase events to actions beyond triggering workflows, see the full list of available actions in the sources overview.