Connect HookFlo with Supabase to receive alerts for database and authentication events
This guide will help you set up a webhook integration between Supabase and HookFlo, allowing you to receive real-time alerts when database changes, authentication events, and other activities occur in your Supabase project.
Supabase uses a combination of database triggers and Postgres functions to deliver webhook events. HookFlo seamlessly integrates with both Supabase’s built-in webhooks and custom webhook implementations.
The integration process follows these key steps:
After logging into HookFlo, follow these steps to create and configure your Supabase webhook:
Create a Webhook
Setting Up Your Webhook Endpoint
Once created, you’ll see your webhook in manage webhooks table.
Setup Notification Channel
Configure Email Notifications
Email notifications are perfect for critical alerts that require immediate attention and have lower usage limits, Use it for critical Alerts.
Configure Slack Notifications
Slack notifications are ideal for team collaboration and awareness, Highly recommended to use Slack and this has 3x Usage limits than email.
Connect your Webhook with application
Configure Application
You can also configure notification channels from this panel if you haven’t done so already.
Now that your HookFlo webhook is set up, you need to configure Supabase to send events to it:
Setup Supabase Webhook
Access Supabase Webhooks
This is where you’ll create database webhooks that trigger on table events.
Create a Database Webhook
Configure Webhook Details
hookflo-users-events
)x-webhook-id
: [Your webhook ID from HookFlo]x-webhook-token
: [Your webhook token from HookFlo]Enable HTTP Extension (If Needed)
Configure Http Extension
For webhooks to function correctly, Supabase needs the HTTP extension enabled. Most projects created after December 2022 have this extension enabled by default.
To check or enable it:
Select Tables to Monitor
Choose Database Tables
When creating your database webhook in Supabase, you can monitor any table:
Simply select the appropriate table from the dropdown when creating your webhook. Supabase will send events to HookFlo whenever the selected events (INSERT, UPDATE, DELETE) occur on that table.
To ensure your integration is working properly:
Generate Test Events
Run Test Events
For authentication events, perform the corresponding action (e.g., create a new user).
Verify in HookFlo
Validate Alert Delivery
This confirms that your Supabase webhook is correctly sending events to HookFlo, and your notification channels are properly configured.
Using SQL for Custom Webhook Triggers
For more control over your webhooks, you can use SQL to create custom triggers:
This approach gives you fine-grained control over what data is sent and when.
Here’s an example of what the webhook payload looks like for different events:
Webhook Not Firing
If your webhook isn’t sending events to HookFlo:
http
extension is enabled in your Supabase projectEvents Received but No Notifications
If HookFlo is receiving events but you’re not getting notifications:
Performance Considerations
For tables with high-frequency changes:
Here’s a complete example of setting up HookFlo to alert your team when new users sign up:
Create the Webhook in HookFlo
Follow the steps above to create a Supabase webhook in HookFlo and configure your notification channels.
Configure the Database Webhook in Supabase
auth.users
table (or your custom users table)When setting up webhook integrations between Supabase and HookFlo, keep these security best practices in mind:
You’ve successfully set up real-time event tracking and alerting between Supabase and HookFlo in just few minutes. Your team can now receive immediate notifications about important database and authentication events, helping you respond quickly to critical situations.
Need more help? Contact our support team or join our Discord forum or DM me directly on X.
Connect HookFlo with Supabase to receive alerts for database and authentication events
This guide will help you set up a webhook integration between Supabase and HookFlo, allowing you to receive real-time alerts when database changes, authentication events, and other activities occur in your Supabase project.
Supabase uses a combination of database triggers and Postgres functions to deliver webhook events. HookFlo seamlessly integrates with both Supabase’s built-in webhooks and custom webhook implementations.
The integration process follows these key steps:
After logging into HookFlo, follow these steps to create and configure your Supabase webhook:
Create a Webhook
Setting Up Your Webhook Endpoint
Once created, you’ll see your webhook in manage webhooks table.
Setup Notification Channel
Configure Email Notifications
Email notifications are perfect for critical alerts that require immediate attention and have lower usage limits, Use it for critical Alerts.
Configure Slack Notifications
Slack notifications are ideal for team collaboration and awareness, Highly recommended to use Slack and this has 3x Usage limits than email.
Connect your Webhook with application
Configure Application
You can also configure notification channels from this panel if you haven’t done so already.
Now that your HookFlo webhook is set up, you need to configure Supabase to send events to it:
Setup Supabase Webhook
Access Supabase Webhooks
This is where you’ll create database webhooks that trigger on table events.
Create a Database Webhook
Configure Webhook Details
hookflo-users-events
)x-webhook-id
: [Your webhook ID from HookFlo]x-webhook-token
: [Your webhook token from HookFlo]Enable HTTP Extension (If Needed)
Configure Http Extension
For webhooks to function correctly, Supabase needs the HTTP extension enabled. Most projects created after December 2022 have this extension enabled by default.
To check or enable it:
Select Tables to Monitor
Choose Database Tables
When creating your database webhook in Supabase, you can monitor any table:
Simply select the appropriate table from the dropdown when creating your webhook. Supabase will send events to HookFlo whenever the selected events (INSERT, UPDATE, DELETE) occur on that table.
To ensure your integration is working properly:
Generate Test Events
Run Test Events
For authentication events, perform the corresponding action (e.g., create a new user).
Verify in HookFlo
Validate Alert Delivery
This confirms that your Supabase webhook is correctly sending events to HookFlo, and your notification channels are properly configured.
Using SQL for Custom Webhook Triggers
For more control over your webhooks, you can use SQL to create custom triggers:
This approach gives you fine-grained control over what data is sent and when.
Here’s an example of what the webhook payload looks like for different events:
Webhook Not Firing
If your webhook isn’t sending events to HookFlo:
http
extension is enabled in your Supabase projectEvents Received but No Notifications
If HookFlo is receiving events but you’re not getting notifications:
Performance Considerations
For tables with high-frequency changes:
Here’s a complete example of setting up HookFlo to alert your team when new users sign up:
Create the Webhook in HookFlo
Follow the steps above to create a Supabase webhook in HookFlo and configure your notification channels.
Configure the Database Webhook in Supabase
auth.users
table (or your custom users table)When setting up webhook integrations between Supabase and HookFlo, keep these security best practices in mind:
You’ve successfully set up real-time event tracking and alerting between Supabase and HookFlo in just few minutes. Your team can now receive immediate notifications about important database and authentication events, helping you respond quickly to critical situations.
Need more help? Contact our support team or join our Discord forum or DM me directly on X.