How to connect Supabase to Knock
Learn how to use Supabase database webhooks to trigger notifications and manage data in Knock.
The Supabase source enables you to receive Supabase database webhook events in Knock and map them to actions like triggering workflows and identifying users. Knock provides a pre-built integration with webhook verification and event-to-action mappings ready to use.
Database webhooks in Supabase fire when rows are inserted, updated, or deleted from your tables, making them useful for sending notifications based on data changes in your application.
Prerequisites
#- A Supabase project with database tables you want to monitor
- A Knock account with at least one workflow configured
Getting started
#Pre-configured events
#The Supabase source comes with mappings for common database webhook event types. You can enable or disable each mapping independently.
Customization
#You can modify any of the pre-configured mappings or create new ones to handle different tables or event types. When customizing field mappings, use dot notation to reference nested fields in the Supabase webhook payload (e.g. record.user_id or old_record.status).
For details on building custom event-action mappings and field mapping, see the custom webhooks documentation.