# Hookflo - Event Alerting Platform Source: https://docs.hookflo.com/introduction Send alerts to Slack and email when events are triggered from different platforms HookFlo Logo HookFlo Logo # Welcome to Hookflo Hookflo is a powerful webhook ***just in minutes*** alerting platform that connects your favorite SaaS tools to your team's communication channels. Get instant notifications in Slack, email, and more (coming soon) when important events occur across your tech stack.\ \ *Hookflo is a streamlined, developer-friendly event alerting system that lets you set up real-time notifications for webhooks, auth, and database events just in minutes — no code, no complex setup required.* ## How It Works Create Webhook from Hookflo Dashboard, Get Integration Configurations like Webhook URL, Webhook ID, Secret Token, Setup Notification Channels. Integrate with services like Stripe, Supabase, Clerk, GitHub, and more using our secure webhook endpoints. Get real-time alerts in Slack, email, or other channels (more coming soon) when important events happen. ## Supported Platforms Get alerts for database changes, auth events, and more. Monitor user authentication and management events. Track payments, subscriptions, and billing events. Stay updated on code changes, PRs, issues, and more. ## Notification Channels Send real-time alerts to your team's Slack channels. Deliver notifications to designated email addresses. ## Get Started Ready to set up your first integration? Check out our [quickstart guide](/getting-started/quickstart) or dive into platform-specific integrations or [DM me directly on X](https://x.com/Prateek53788134). # Webhook Payload Normalization Source: https://docs.hookflo.com/normalization Stop writing webhook handlers for every platform. Normalize once, integrate everywhere. **Early Access:** Webhook payload normalization is currently in active development. Payment normalization is available now via `@hookflo/tern`. Additional categories (Auth, Database, Infrastructure) are coming soon. ## The Problem Your app integrates with Stripe for payments. Then a customer wants Razorpay. Another wants PayPal. Each platform sends webhooks in completely different formats: ```json Stripe theme={null} { "id": "ch_3NqBXY2eZvKYlo2C0wB6xJZv", "object": "charge", "amount": 5000, "amount_captured": 5000, "currency": "usd", "status": "succeeded", "payment_method_details": { "card": { "brand": "visa", "last4": "4242" } }, "metadata": {...}, "billing_details": {...} // ... 50+ more fields } ``` ```json Razorpay theme={null} { "entity": "payment", "amount": 500000, "currency": "INR", "status": "captured", "order_id": "order_JZ8kPWNJuGd8q4", "method": "card", "card": { "network": "Visa", "last4": "4242" }, "captured": true // ... different structure entirely } ``` Now you're maintaining separate handlers for each platform. Migration? Rewrite everything. ## The Solution Hookflo's `@hookflo/tern` normalizes all webhook payloads into consistent schemas: ```javascript theme={null} import { normalize } from '@hookflo/tern'; app.post('/webhooks/:platform', async (req, res) => { // Works with Stripe, Razorpay, PayPal, Square... const payment = normalize(req.body, { platform: req.params.platform, category: 'payments' // ✅ Available now }); // Always get the same structure await processPayment({ id: payment.transaction_id, amount: payment.amount, currency: payment.currency, status: payment.status, method: payment.payment_method }); }); ``` *** ## Benefits ### 1. Switch Platforms Without Code Changes **The Impact:** Migrate from one provider to another in minutes, not months. Testing a new payment processor? Want to switch auth providers? With normalized payloads, your webhook handlers work with any platform immediately. **Before Hookflo:** * 2-3 weeks of development per migration * High risk of bugs in rewritten handlers * Business disruption during transition * Vendor lock-in due to switching costs **With Hookflo:** * Change a config value * Zero code modifications * Test in staging instantly * True multi-vendor freedom *** ### 2. Reduce Bandwidth by 40-70% **The Impact:** Significant cost savings at scale, faster processing, better performance. Raw webhooks include dozens of unnecessary fields. Stripe sends 50+ fields per payment webhook — you need maybe 8. That's 80% waste. ```javascript theme={null} // Raw Stripe payload: ~2.5 KB { "id": "ch_...", "object": "charge", "amount": 5000, // ... 45 more fields you never use "metadata": {...}, "refunds": {...}, "fraud_details": {...} } // Normalized payload: ~0.4 KB { "transaction_id": "ch_...", "amount": 5000, "currency": "usd", "status": "succeeded", "customer_id": "cus_...", "payment_method": "card", "timestamp": "2024-10-10T12:00:00Z" } ``` **At 1M webhooks/month:** * Raw data: \~2.5 TB/month * Normalized: \~0.4 TB/month * **Savings: 2.1 TB/month** This translates to lower infrastructure costs, faster API responses, and reduced network load. *** ### 3. Integrate New Platforms in Hours, Not Weeks **The Impact:** 10x faster time-to-market for new integrations. Traditional approach: Study docs → Parse responses → Map fields → Write tests → Deploy → Repeat for next platform. With normalized schemas: Install package → Use existing handlers → Done. Stripe, PayPal, Razorpay, Polar Auth0, Okta, Clerk, Firebase Auth, Cognito MongoDB, Supabase, PostgreSQL AWS, Vercel, Railway, Render One codebase handles them all. Add a new provider by changing one line: ```diff theme={null} - platform: 'stripe' + platform: 'razorpay' ``` *** ### 4. Crystal Clear Data, Zero Ambiguity **The Impact:** Write less code, prevent bugs, onboard developers faster. Different platforms use different field names for the same concept: * Amount: `amount` vs `value` vs `total` * Status: `status` vs `state` vs `payment_status` * User ID: `customer_id` vs `user_id` vs `customer` Hookflo standardizes everything: ```typescript theme={null} interface NormalizedPayment { transaction_id: string; amount: number; // Always in smallest currency unit currency: string; // Always ISO 4217 (USD, EUR, INR) status: 'succeeded' | 'failed' | 'pending' | 'refunded'; customer_id: string; payment_method: 'card' | 'bank_transfer' | 'wallet' | 'other'; timestamp: string; // Always ISO 8601 } ``` ```typescript theme={null} interface NormalizedAuth { user_id: string; event_type: 'login' | 'logout' | 'signup' | 'password_reset'; timestamp: string; ip_address?: string; device_type?: 'mobile' | 'desktop' | 'tablet'; success: boolean; } ``` Coming Q1 2025 ```typescript theme={null} interface NormalizedDatabase { operation: 'create' | 'update' | 'delete'; collection: string; // table/collection name record_id: string; timestamp: string; user_id?: string; changes?: object; } ``` Coming Q1 2025 **Benefits:** * Type-safe across all platforms * Self-documenting code * Predictable behavior * No more "wait, which field has the amount?" moments *** ### 5. Keep Raw Payloads When You Need Them **The Impact:** Get normalization benefits without losing flexibility. Sometimes you need platform-specific data. Hookflo gives you both: ```javascript theme={null} const result = normalize(req.body, { platform: 'stripe', category: 'payments', mode: 'hybrid' // Get both normalized and raw }); // Use normalized for business logic await processPayment(result.normalized); // Access raw for platform-specific features if (result.raw.payment_method_details?.card?.brand === 'amex') { await applyAmexPerks(result.normalized.customer_id); } // Perfect for debugging logger.debug('Full webhook payload:', result.raw); ``` **Smart Migration:** Transition legacy systems gradually by keeping raw payloads accessible while moving to normalized data. *** ## Supported Categories **Platforms:** Stripe, PayPal, Square, Razorpay, Adyen, Braintree, Paddle, Mollie **Normalized Fields:** * Transaction ID & amount * Currency (ISO 4217) * Status (succeeded, failed, pending, refunded) * Customer ID * Payment method type * Timestamp (ISO 8601) **Planned Platforms:** Auth0, Okta, Clerk, Firebase Auth, AWS Cognito, WorkOS **Planned Normalized Fields:** * User ID * Event type (login, logout, signup, password\_reset, mfa\_enabled) * Success indicator * IP address & device type * Timestamp **Planned Platforms:** MongoDB, Supabase, PostgreSQL, PlanetScale, Firebase, Neon **Planned Normalized Fields:** * CRUD operation type * Collection/table name * Record ID * Change summary * Actor (user\_id) * Timestamp **Planned Platforms:** AWS, Google Cloud, Azure, Vercel, Railway, Render, Fly.io **Planned Normalized Fields:** * Resource identifier * Event type (deployment, scaling, failure) * Status & severity level * Region/zone * Timestamp **Want to influence our roadmap?** [Join our Discord](https://discord.gg/hookflo) or [open a discussion on GitHub](https://github.com/hookflo/tern/discussions) to request specific platforms or categories. *** ## Getting Started ```bash theme={null} npm install @hookflo/tern ``` ```javascript theme={null} import { normalize } from '@hookflo/tern'; const payment = normalize(webhookPayload, { platform: 'stripe', category: 'payments' }); ``` ```javascript theme={null} // Works with Stripe, Razorpay, PayPal, Square... console.log(payment.transaction_id); console.log(payment.amount); console.log(payment.status); ``` *** ## Before vs After * Separate handler per platform * 2-3 weeks per integration * Platform migrations = full rewrites * 100% payload size * Vendor lock-in * Complex testing * Single unified handler * Hours per integration * Change config to migrate * 30-60% payload size * Zero vendor lock-in * Simple, consistent tests *** ## FAQ **Payment platforms are fully supported** including Stripe, PayPal, Square, Razorpay, Adyen, and Braintree. Auth, Database, and Infrastructure categories are in development. Use `mode: 'hybrid'` to get both normalized and raw payloads. You get the convenience of normalized data with full access to platform-specific fields when needed. Yes! While we provide pre-built schemas for 50+ platforms, you can define custom normalization rules for internal services or less common platforms. Negligible. Normalization adds \~1-2ms of processing time but saves significantly more through reduced payload size and faster parsing. Absolutely. Use hybrid mode to keep raw payloads while transitioning your codebase. Migrate endpoint by endpoint at your own pace. We monitor platform APIs and update normalization rules automatically. Your code stays unchanged even when providers change their webhook formats. Yes! We're actively building our roadmap based on user feedback. [Join our Discord](https://discord.gg/hookflo) or [open a GitHub discussion](https://github.com/hookflo/tern/discussions) to request features. *** ## Start Normalizing Today Stop maintaining separate webhook handlers for every platform. Write once, integrate everywhere. Complete guides and API reference Install @hookflo/tern View source and contribute Start your free trial # Overview Source: https://docs.hookflo.com/notification-channels/overview Learn about the different ways Hookflo can deliver alerts to your team Notification channels are the destinations where Hookflo sends alerts when webhook events are received. This page provides an overview of available notification channels and how to configure them. ## Available Channels Send rich, interactive alerts to Slack channels or direct messages Deliver detailed notifications to individual or group email addresses ## Coming Soon We're actively working on adding more notification channels: * Microsoft Teams * Discord * Webhook forwarding ## Channel Configuration Each notification channel type requires specific configuration: Slack notifications require: * Incoming Slack Channel Webhook URL * Channel selection for delivering messages * Slack template Email notifications require: * Recipient email addresses * Email subject template * HTML and text content email templates ## Key Features ### Message Templating All notification channels support customizable message templates: * **Template variables**: Insert dynamic content from webhook payloads * **Conditional sections**: Show parts of the message only when certain conditions are met * **Markdown support**: Format your messages with rich text * **Preview capability**: Test your templates before saving ### Filtering & Routing (Coming soon) Control exactly when and where notifications are sent: * **Event filtering**: Send notifications only for specific event types * **Content-based rules**: Apply conditions based on the webhook payload content * **Channel routing**: Send different types of events to different channels * **Priority levels**: Set importance levels for different types of alerts ### Scheduled Digests (Coming Soon) Instead of receiving individual notifications, you can configure digest summaries: * **Hourly digests**: Collect and summarize events from the past hour * **Daily reports**: Get a daily summary of all events * **Weekly summaries**: Receive a weekly rollup of activity ## Best Practices Begin by setting up notifications for the most important events, then expand as needed. Give your notification channels descriptive names that indicate their purpose. Always use the preview function to test how your messages will appear before activating them. Be selective about which events trigger notifications to prevent overwhelming your team. ## Next Steps * [Set up Slack notifications](/notification-channels/slack) * [Configure email alerts](/notification-channels/email) * Learn how to [create custom alert templates](/notification-channels/templates) * Explore [alert routing strategies](/notification-channels/routing) Need Support? [Let us know](mailto:support@hookflo.dev)\ or [DM me directly on X](https://x.com/Prateek53788134). # Slack Source: https://docs.hookflo.com/notification-channels/slack Set up Slack as a notification channel for your webhook alerts using the new simplified integration ## Slack Integration Guide This guide will help you set up Slack as a notification channel in Hookflo, allowing you to receive real-time alerts in your team's Slack workspace when webhook events are triggered. Hookflo now provides a simplified one-click Slack integration that automatically handles permissions and setup. Connect once and use across all your webhooks. ## ## Quick Integration (Recommended) You can connect your Slack workspace from two places: **Option 1: From Profile Settings** 1. Navigate to your Profile → Settings → Integrations 2. Find the Slack integration section 3. Click the **"Add to Slack"** button 4. Authorize Hookflo in your Slack workspace 5. Once connected, this workspace will be available for all your webhooks **Option 2: From Webhook Configuration** 1. Go to your webhook's notification settings 2. Look for the Slack notification option 3. Click **"Add to Slack"** if not already connected 4. Complete the authorization process Both methods work identically - connect once and use everywhere. 1. In your webhook's notification settings, toggle **Slack notifications ON** 2. Select which channel should receive alerts from the dropdown 3. If your desired channel doesn't appear: * Go to that Slack channel * Type `/invite @Hookflo` to invite the bot * The channel will then appear in the dropdown 4. Save your settings **Key Points:** * Each webhook can send alerts to different channels * Private channels need the Hookflo bot invited to be selectable * One workspace connection works for all webhooks 1. Use the test feature in your webhook configuration 2. Send a test alert to verify it appears in your selected Slack channel 3. Customize message templates using the Slack template builder if needed Your Slack integration is now ready to receive real-time webhook alerts! ## Managing Your Connection ### Workspace Management * Only one Slack workspace can be connected at a time * Change workspaces anytime from Profile Settings → Integrations * Switching workspaces applies to all webhooks but requires reconfiguring channel selections ### Permissions Hookdlo requests minimal permissions: * `chat:write` - Send alerts to channels * `channels:read` - List available channels * `groups:read` - Access private channels when invited ### Channel Access If a channel is disabled or missing from the dropdown: 1. Go to the Slack channel 2. Type `/invite @Hookflo` 3. The channel will become available for selection *** ## Legacy Integration Method The following method is not supported now. Use the simplified method above instead. ### Manual Webhook Setup (Legacy) 1. Visit the [Slack API website](https://api.slack.com/apps) and sign in with your Slack account 2. Click **Create New App** 3. Select **From scratch** 4. Enter a name for your app (e.g., "Hookflo Notifications") 5. Select the workspace where you want to receive notifications 6. Click **Create App** Create Slack App Choose Scratch App Pn 1. In the left sidebar of your Slack app dashboard, click on **Incoming Webhooks** 2. Toggle the switch to **On** to activate Incoming Webhooks 3. Click **Add New Webhook to Workspace** 4. Select the Slack channel where you want to receive notifications 5. Click **Allow** to authorize the webhook 6. You'll be redirected back to the Incoming Webhooks page 7. Copy the generated **Webhook URL** (it will look like `https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX`) Activate Incoming Webhooks Copy Generated Webhook Url Pn 1. Log in to your Hookflo dashboard 2. Choose a webhook to Configure Notifications. 3. Navigate to **Notification Channels** > **Add Channel** 4. Select **Slack** from the available channels 5. Give your notification channel a descriptive name (e.g., "Product Team Alerts") 6. Paste the Slack Webhook URL you copied earlier 7. Configure notification preferences: * **Default Username**: Set the display name for notifications (e.g., "Hookflo Alerts") * **Default Icon**: Enter a URL for a custom icon or use emoji codes like `:bell:` * **Message Format**: Choose between Simple, Detailed, or Custom formats 8. Click **Save Channel** Hookflo Slack Configuration To ensure your Slack notifications are working correctly: 1. In the channel configuration page, click **Send Test Message** 2. Select which webhook payload to use for the test (or use a sample) 3. The test message will be sent to your configured Slack channel 4. Verify that the message appears as expected If the test is successful, you're all set to receive webhook notifications in your Slack channel. ## Slack Templates Customization ### Custom Slack Templating Hookflo provides Rich Text Editor along with Block editor for Slack Message Customization: 1. Navigate to Slack Templates in Sidebar 2. Choose Webhook For which you want to edit the template. 3. Slack Templates currently do not support dynamic variables will be available soon, 4. Create your own template using our Slack's Block Editor 5. Slack templates have character limits of 1700 characters, 6. your have full control over how slack message should looks and can be previewed with real time editor *** Need more help? [Contact our support team](mailto:team.hookflo@gmail.com) or join our [Discord forum](https://discord.gg/SNmCjU97nr). or [DM me directly on X](https://x.com/Prateek53788134) # Quickstart Guide Source: https://docs.hookflo.com/quickstart Get up and running with Hookflo in minutes This guide will help you set up your first webhook integration and notification channel in just a few minutes. ## Step 1: Create a Hookflo Account Visit [hookflo.com](https://hookflo.com/sign-up) and create a new account or sign in with an existing one. Navigate to your project [dashboard](https://hookflo.com/dashboard/webhooks) where you'll set up integrations and channels. ## Step 2: Set Up a Webhook Endpoint In your dashboard, navigate to "Webhooks" and click "Create New Webhook". Choose from our supported platforms (Stripe, Supabase, Clerk, GitHub, etc.). Each platform has specific configuration requirements. Follow the platform-specific instructions provided. Copy your unique webhook URL which you'll use when setting up the integration on the platform's side. ## Step 3: Configure a Notification Channel Navigate to "Notification Channels" and click "Add Channel". Choose either Slack or Email (more options coming soon). Follow the channel-specific setup instructions. Select Template and Update it according to your use case if needed. Send a test notification to ensure everything is working correctly. ## Next Steps Now that you have your first integration set up, consider: Integrate with additional services to expand your monitoring. Learn more about notification customization options. Ensure your webhook integrations are secure. Need Support? [Let us know](mailto:support@hookflo.dev)\ or [DM me directly on X](https://x.com/Prateek53788134). # Security Overview Source: https://docs.hookflo.com/security/best-practices Learn about HookFlo's comprehensive security features and algorithm-agnostic payload processing HookFlo is built with security as a fundamental principle. This guide outlines our approach to securing webhook communication, protecting sensitive data, and ensuring the integrity of all webhook events processed through our platform. Security is a shared responsibility. While HookFlo provides robust security features, it's important to follow best practices when configuring your webhooks and handling sensitive data. ## Core Security Features ### Webhook Authentication & Verification HookFlo supports multiple methods for authenticating and verifying webhook sources: Verify the authenticity of webhooks using HMAC signatures with algorithms like SHA-256 Validate JSON Web Tokens using various signing algorithms Implement simple key-based authentication for webhook sources Support for username/password verification methods ```json HMAC Configuration { "verification": { "type": "hmac", "algorithm": "sha256", "signatureHeader": "X-Hub-Signature-256", "signaturePrefix": "sha256=", "secret": "${WEBHOOK_SECRET}" } } ``` ```json JWT Configuration { "verification": { "type": "jwt", "algorithm": "RS256", "secret": "${JWT_PUBLIC_KEY}", "claimValidation": { "iss": "api.service.com", "aud": "hookflo" } } } ``` HookFlo verifies signatures using the exact algorithm specified by the webhook provider, ensuring compatibility with any service. ## Algorithm-Agnostic Payload Processing HookFlo is designed to work with any webhook format or encoding scheme used by service providers. Our platform handles various encoding formats: | Encoding Type | Description | Use Case | | --------------- | ---------------------------------------------------- | --------------------------------------------------------- | | Base64 | Decodes Base64-encoded payloads (standard, URL-safe) | Services that encode binary data or compress payloads | | URL Encoding | Parses URL-encoded request bodies | Form submissions and legacy webhook systems | | JWT Payload | Extracts and validates claims from JWT tokens | Modern API systems using token-based authentication | | Gzip/Deflate | Automatically decompresses compressed payloads | High-volume webhook systems that optimize for size | | Custom Encoding | Apply custom decoding functions | Proprietary encoding formats unique to specific providers | Multiple decoding steps can be chained to handle complex encoding schemes: ```json { "preProcessing": { "decoding": [ { "type": "base64", "target": "body.data" }, { "type": "gzip", "target": "decodedData" } ] } } ``` ### Comprehensive Algorithm Support HookFlo supports all commonly used signature verification algorithms: New algorithms are continuously added to maintain compatibility with all webhook providers. ### Verification Methods Different services implement webhook verification in various ways: #### Header-Based Signatures * Standard header placement * Custom header names * Multiple signature headers #### Request Parameter Verification * Query parameter signatures * Form-encoded signatures * Timestamp-based verification #### Body Hash Verification * Complete body hashing * Canonicalized JSON * Specific field selection HookFlo's verification engine can be configured to match any provider's approach, ensuring you can securely process webhooks from any service. ## Best Practices ### Security Checklist * Enable signature verification for all webhook sources * Implement IP allowlisting for known webhook providers * Redact sensitive data fields using JSON path selectors * Set appropriate retention periods for webhook data * Configure webhook timeout settings to prevent hanging connections * Regularly rotate webhook secrets and API keys * Monitor the webhook security audit log for suspicious activity * Use rate limiting to protect endpoints from abuse * Implement strict CORS policies for web-based webhook endpoints ### Security Recommendations * Always enable signature verification * Implement rate limiting and IP filtering * Use HTTPS with modern TLS settings * Consider adding CAPTCHA for user-initiated webhooks * Monitor for unusual traffic patterns * Use mutual TLS (mTLS) for service-to-service communication * Implement network-level isolation for webhook processing systems * Consider using private endpoints within your network * Implement strict egress filtering for webhook consumers Need Support? [Let us know](mailto:support@hookflo.dev)\ or [DM me directly on X](https://x.com/Prateek53788134). # Clerk Source: https://docs.hookflo.com/webhook-platforms/clerk Set up webhooks to receive notifications for user authentication events from Clerk ## Integration Guide This guide will walk you through setting up a webhook integration between Clerk and Hookflo, enabling you to receive alerts for user authentication and management events. Clerk uses [Svix](https://www.svix.com/) to manage their webhook infrastructure, so the webhooks will include Svix-specific headers that Hookflo will validate. ## Prerequisites * A Hookflo account with an active project * A Clerk account with admin access to your application * Basic understanding of Clerk's authentication system ## Integration Overview The integration process follows these key steps: 1. Set up a webhook in Hookflo 2. Configure notification channels (email/Slack) 3. Connect Clerk to Hookflo 4. Configure Clerk to send webhooks 5. Test the integration ## Setting Up Your Hookflo Webhook After logging into Hookflo, follow these steps to create and configure your Clerk webhook: 1. From your [Hookflo Dashboard](https://www.hookflo.com/dashboard/webhooks), navigate to > **Manage Webhooks** 2. Click on **+ Create Webhook** 3. Your webhook will be created in an inactive state by default Once created, you'll see your webhook in manage webhooks table.
Create Webhook Screen
1. Toggle the **Email Notifications** switch to enable email alerts 2. In the dialog box that appears, enter the email address where you want to receive notifications 3. Select an email template from the dropdown menu 4. Click **Preview Template** to see how your notifications will look 5. Use the editor to customize the template if needed 6. Click **Save Configuration** to confirm your settings Email notifications are perfect for critical alerts that require immediate attention and have lower usage limits. Use it for critical alerts.
Email Configuration Dialog
1. Toggle the **Slack Notifications** switch to enable Slack alerts 2. In the dialog box, paste your Slack webhook URL (see [How to Get a Slack Webhook URL](/notification-channels/slack)) 3. Keep the random generated name or enter a custom one (optional) 4. Select a notification template from the available options 5. Preview and edit the template as needed 6. Click **Save Configuration** to confirm your settings Slack notifications are ideal for team collaboration and awareness. Highly recommended to use Slack as it has 3x usage limits compared to email.
Slack Configuration Dialog
1. Click the **Connect** button to activate your webhook 2. Select **Clerk** as application to integrate 3. A configuration panel will appear with your webhook credentials: * **Webhook URL**: The HTTP POST request endpoint Clerk will send events to * **Signing Secret**: Signing Secret generated by Clerk 4. You'll need to add your Clerk Signing Secret in the next steps 5. Copy the **Webhook URL** for the next section You can also configure notification channels from this panel if you haven't done so already.
Connection Configuration Panel
## Configuring Clerk Now that your HookFlo webhook is set up, you need to configure Clerk to send events to it: 1. Log in to your [Clerk Dashboard](https://dashboard.clerk.dev/) 2. Select your application 3. Navigate to **Configure Tab** > **Select** **Webhooks** in the left sidebar 4. Click **Add Endpoint** 5. Enter your HookFlo webhook URL that you copied from the previous step 6. Under **Message filtering**, select the events you want to monitor: * For user events: `user.created`, `user.updated`, `user.deleted`, etc. * For session events: `session.created`, `session.removed`, etc. * For authentication events: `emailAddress.verified`, `password.reset`, etc. 7. Click **Create**
Clerk Webhook Configuration Select Even And Create Pn
After creating the webhook endpoint in Clerk: 1. In your Clerk dashboard, find your newly created webhook endpoint 2. Locate the **Signing Secret** section 3. Click **Reveal** to view the secret 4. Copy the signing secret This secret is crucial for verifying that webhook events are genuinely from Clerk.
Clerk Signing Secret
1. Return to the HookFlo dashboard 2. Navigate to your Clerk webhook configuration 3. Find the "Signing Secret" field 4. Paste the Clerk signing secret you copied 5. Click **Save Configuration** This step completes the secure connection between Clerk and HookFlo.
HookFlo Signing Secret Configuration
## Testing Your Integration To ensure your integration is working properly: 1. In the Clerk dashboard, find your webhook endpoint 2. Click **Send test event** 3. Select an event type (e.g., `user.created`) 4. Click **Send test** to deliver a sample webhook to HookFlo
Clerk Test Webhook
1. Return to your HookFlo dashboard 2. Navigate to [Notification Logs](https://www.hookflo.com/dashboard/logs) 3. You should see the test events appear with details about the changes 4. If you've configured notification channels, check your email or Slack for alerts This confirms that your Clerk webhook is correctly sending events to HookFlo, and your notification channels are properly configured.
Event Logs in HookFlo
## Supported Events Clerk supports a wide range of webhook events. Here are the most commonly used categories: ### User Events * `user.created`: When a new user is created * `user.updated`: When user details are changed * `user.deleted`: When a user is deleted * `user.locked`: When a user account is locked ### Session Events * `session.created`: When a user signs in * `session.removed`: When a user signs out * `session.ended`: When a session expires ### Authentication Events * `emailAddress.created`: When an email address is added * `emailAddress.verified`: When an email is verified * `phoneNumber.created`: When a phone number is added * `phoneNumber.verified`: When a phone is verified * `password.created`: When a password is set * `password.reset`: When a password is reset ### Organization Events * `organization.created`: When a new organization is created * `organization.updated`: When an organization is updated * `organization.deleted`: When an organization is deleted * `organizationMembership.created`: When a user joins an organization * `organizationMembership.deleted`: When a user leaves an organization For a complete list of events, refer to the [Clerk Webhook Events documentation](https://clerk.com/docs/webhooks/overview). ## Webhook Headers Clerk webhooks include these important headers that HookFlo uses for verification: * `svix-id`: A unique identifier for the webhook event * `svix-timestamp`: When the webhook was sent * `svix-signature`: A signature that proves the webhook came from Clerk ## Webhook Payload Structure Here's an example of what the webhook payload looks like for a `user.created` event: ```json theme={null} { "data": { "id": "user_2NZrMxLQOI49IM9xmLMBB6yrY7L", "first_name": "John", "last_name": "Doe", "email_addresses": [ { "id": "idn_2NZrMxWEDc8XVtCyD6ULe9YNdGX", "email_address": "john@example.com", "verification": { "status": "verified", "strategy": "email_code" } } ], "created_at": 1645131680, "updated_at": 1645131680 }, "object": "event", "type": "user.created" } ``` ## Advanced Configuration HookFlo allows you to fully customize your notification templates: ### Email Template Example: ``` Subject: [{{type}}] Clerk Auth Event Hello, The following {{type}} event occurred: User: {{#if data.first_name}}{{data.first_name}} {{data.last_name}}{{else}}New User{{/if}} Email: {{#if data.email_addresses.[0]}}{{data.email_addresses.[0].email_address}}{{/if}} Time: {{data.created_at | date}} Best regards, The HookFlo Team ``` ### Slack Template Example: ``` *{{type}} Event* User: {{#if data.first_name}}{{data.first_name}} {{data.last_name}}{{else}}New User{{/if}} Email: {{#if data.email_addresses.[0]}}{{data.email_addresses.[0].email_address}}{{/if}} User ID: {{data.id}} Time: {{data.created_at | date}} ``` You can use any data from the webhook payload in your templates. Clerk allows you to differentiate between test and production environments: 1. Set up separate webhooks in HookFlo for test and production environments 2. Use clear naming conventions to distinguish between test and production webhooks 3. Configure different notification channels for test vs. production events This separation helps prevent confusion between test data and real user events. ## Troubleshooting If you're seeing webhook verification errors: 1. Double-check that you've entered the correct signing secret in HookFlo 2. Ensure the secret is from the same endpoint where you configured the HookFlo URL 3. Check if the signing secret has been rotated in Clerk recently 4. Verify your server's clock is accurately synchronized (time drift can cause verification failures) If certain events aren't being received: 1. Verify that you've selected those specific event types in Clerk's webhook configuration 2. Check Clerk's webhook delivery logs to confirm they're being sent 3. Ensure your HookFlo webhook is active and properly configured If webhook deliveries are timing out: 1. Check Clerk's webhook logs for timeout errors 2. Consider implementing webhook retries in Clerk's settings 3. Contact HookFlo support if the issue persists ## Example: Monitoring New User Signups Here's a complete example of setting up HookFlo to alert your team when new users sign up: Follow the steps above to create a Clerk webhook in HookFlo and configure your notification channels. 1. In your Clerk dashboard, go to **Webhooks** 2. Create a new webhook using your HookFlo webhook URL 3. Select the `user.created` event type 4. Copy your webhook signing secret 5. Add the signing secret to your HookFlo Clerk configuration 1. Create a new test user in your Clerk application 2. Check your configured notification channels for alerts 3. Verify the event appears in your HookFlo notification logs ## Security Considerations When setting up webhook integrations between Clerk and HookFlo, keep these security best practices in mind: * **Protect your signing secret**: Never expose the Clerk signing secret in client-side code * **Validate all webhooks**: Always use the signing secret to verify webhook authenticity * **Use HTTPS only**: Ensure all webhook URLs use encrypted connections * **Implement proper access controls**: Limit who can view sensitive user information * **Monitor webhook activity**: Regularly review webhook events for suspicious patterns ## Congratulations! 🎉 You've successfully set up real-time authentication event tracking and alerting between Clerk and HookFlo in just a few minutes. Your team can now receive immediate notifications about important user events, helping you respond quickly to critical situations. Need more help? [Contact our support team](mailto:team.hookflo@gmail.com) or join our [Discord forum](https://discord.gg/SNmCjU97nr) or [DM me directly on X](https://x.com/Prateek53788134). # GitHub Source: https://docs.hookflo.com/webhook-platforms/github Set up webhooks to receive notifications for repository events from GitHub {true} ## Integration Guide This guide will walk you through setting up a webhook integration between GitHub and Hookflo, enabling you to receive alerts for repository events like code pushes, pull requests, issues, and more. GitHub webhooks can be configured at either the repository or organization level, giving you flexibility in how you monitor your GitHub activity. Hookflo only supports GitHub integration only when a secret is provided during webhook creation. Leaving the secret field empty will cause notifications to fail.Prerequisites * A Hookflo account with an active project * A GitHub account with admin access to the repository or organization you want to monitor * Basic understanding of GitHub's workflow and repository management ## Integration Overview The integration process follows these key steps: 1. Set up a webhook in Hookflo 2. Configure notification channels (email/Slack) 3. Connect GitHub to Hookflo 4. Configure GitHub to send webhooks 5. Test the integration ## Setting Up Your Hookflo Webhook After logging into Hookflo, follow these steps to create and configure your GitHub webhook: 1. From your [Hookflo Dashboard](https://www.hookflo.com/dashboard/webhooks), navigate to > **Manage Webhooks** 2. Click on **+ Create Webhook** 3. Your webhook will be created in an inactive state by default Once created, you'll see your webhook in manage webhooks table.
Create Webhook Screen
1. Toggle the **Email Notifications** switch to enable email alerts 2. In the dialog box that appears, enter the email address where you want to receive notifications 3. Select an email template from the dropdown menu 4. Click **Preview Template** to see how your notifications will look 5. Use the editor to customize the template if needed 6. Click **Save Configuration** to confirm your settings Email notifications are perfect for critical alerts that require immediate attention and have lower usage limits. Use it for critical alerts.
Email Configuration Dialog
1. Toggle the **Slack Notifications** switch to enable Slack alerts 2. In the dialog box, paste your Slack webhook URL (see [How to Get a Slack Webhook URL](/notification-channels/slack)) 3. Keep the randomly generated name or enter a custom one (optional) 4. Select a notification template from the available options 5. Preview and edit the template as needed 6. Click **Save Configuration** to confirm your settings Slack notifications are ideal for team collaboration and awareness. Highly recommended to use Slack as it has 3x usage limits compared to email.
Slack Configuration Dialog
1. Click the **Connect** button to activate your webhook 2. Select **GitHub** as application to integrate 3. A configuration panel will appear with your webhook credentials: * **Webhook URL**: The HTTP POST request endpoint GitHub will send events to * **Webhook Secret**: Secret for GitHub to sign webhook payloads (optional) 4. Copy the **Webhook URL** for the next section You can also configure notification channels from this panel if you haven't done so already.
Connection Configuration Panel
## Configuring GitHub Now that your HookFlo webhook is set up, you need to configure GitHub to send events to it: 1. Navigate to your GitHub repository 2. Click on **Settings** in the top navigation bar 3. Select **Webhooks** from the left sidebar 4. Click **Add webhook** 5. Enter your HookFlo webhook URL in the **Payload URL** field 6. Set **Content type** to `application/json` 7. Required to Enter a secret in the **Secret** field 8. Choose which events to trigger the webhook: * **Just the push event** (default) * **Send me everything** * **Let me select individual events** 9. Check the **Active** checkbox to enable the webhook 10. Click **Add webhook** to finalize
If you want to monitor events across all repositories in an organization: 1. Navigate to your GitHub organization 2. Click on **Settings** in the top navigation bar 3. Select **Webhooks** from the left sidebar 4. Click **Add webhook** 5. Enter your HookFlo webhook URL in the **Payload URL** field 6. Set **Content type** to `application/json` 7. Required to Enter a secret in the **Secret** field 8. Choose which events to trigger the webhook: * **Just the push event** (default) * **Send me everything** * **Let me select individual events** (including organization-specific events) 9. Check the **Active** checkbox to enable the webhook 10. Click **Add webhook** to finalize
After creating the webhook in GitHub (If you have added secret in Github): 1. Return to the HookFlo dashboard 2. Navigate to your GitHub webhook configuration 3. Find the "Webhook Secret" field 4. Paste the same secret you entered in GitHub 5. Click **Save Configuration** This step ensures that HookFlo can verify webhook events are genuinely from GitHub.
HookFlo Secret Configuration
## Testing Your Integration To ensure your integration is working properly: 1. In GitHub, go to your repository or organization's **Webhooks** settings 2. Find your newly created webhook 3. Scroll to the bottom and click **Redeliver** on a recent delivery, or 4. Click **Test** to send a ping event 5. Alternatively, create a real event by pushing code, opening an issue, or creating a pull request
GitHub Test Webhook
1. Return to your HookFlo dashboard 2. Navigate to [Notification Logs](https://www.hookflo.com/dashboard/logs) 3. You should see the test events appear with details about the changes 4. If you've configured notification channels, check your email or Slack for alerts This confirms that your GitHub webhook is correctly sending events to HookFlo, and your notification channels are properly configured.
Event Logs in HookFlo
## Supported Events GitHub supports a wide range of webhook events. Here are the most commonly used categories: ### Code Events * `push`: When code is pushed to a repository * `commit_comment`: When a commit is commented on * `create`: When a branch or tag is created * `delete`: When a branch or tag is deleted * `release`: When a release is published, updated, or deleted ### Pull Request Events * `pull_request`: When a pull request is opened, closed, assigned, labeled, etc. * `pull_request_review`: When a review is submitted, edited, or dismissed * `pull_request_review_comment`: When a comment is made on a pull request diff * `pull_request_review_thread`: When a thread in a pull request review is resolved or unresolved ### Issue Events * `issues`: When an issue is opened, closed, assigned, labeled, etc. * `issue_comment`: When a comment is made on an issue or pull request * `label`: When a label is created, edited, or deleted ### Repository Events * `repository`: When a repository is created, archived, unarchived, etc. * `repository_import`: When a repository import is completed, canceled, or failed * `repository_vulnerability_alert`: When a security vulnerability alert is created, dismissed, or resolved ### GitHub Actions Events * `workflow_job`: When a workflow job is queued, completed, or failed * `workflow_run`: When a workflow run is completed ### Organization Events * `organization`: When an organization is deleted, renamed, or a user is added or removed * `organization_package`: When a package is published or updated * `team`: When a team is created, deleted, or modified * `team_add`: When a repository is added to a team For a complete list of events, refer to the [GitHub Webhook Events documentation](https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads). ## Webhook Headers GitHub webhooks include these important headers that HookFlo uses for verification: * `X-GitHub-Event`: The type of event (e.g., `push`, `pull_request`) * `X-GitHub-Delivery`: A unique identifier for the delivery * `X-Hub-Signature-256`: HMAC SHA-256 signature of the payload (if secret configured) ## Webhook Payload Structure Here's an example of what the webhook payload looks like for a `push` event: ```json theme={null} { "ref": "refs/heads/main", "before": "6113728f27ae82c7b1a177c8d03f9e96e0adf246", "after": "0000000000000000000000000000000000000000", "repository": { "id": 123456, "node_id": "MDEwOlJlcG9zaXRvcnkxMjM0NTY=", "name": "my-repo", "full_name": "username/my-repo", "private": false, "owner": { "name": "username", "email": "user@example.com", "login": "username", "id": 12345 }, "html_url": "https://github.com/username/my-repo", "description": "Repository description" }, "pusher": { "name": "username", "email": "user@example.com" }, "sender": { "login": "username", "id": 12345, "node_id": "MDQ6VXNlcjEyMzQ1", "avatar_url": "https://avatars.githubusercontent.com/u/12345?v=4", "type": "User" }, "created": false, "deleted": true, "forced": false, "commits": [] } ``` ## Advanced Configuration HookFlo allows you to fully customize your notification templates: ### Email Template Example for Pull Request: ``` Subject: [GitHub] Pull Request {{action}} by {{sender.login}} Hello, A pull request was {{action}} in {{repository.full_name}}: Title: {{pull_request.title}} Author: {{pull_request.user.login}} URL: {{pull_request.html_url}} {{#if pull_request.body}} Description: {{pull_request.body}} {{/if}} Best regards, The HookFlo Team ``` ### Slack Template Example for Code Push: ``` *New code pushed to {{repository.full_name}}* Branch: {{ref}} Pusher: {{pusher.name}} {{#each commits}} • <{{this.url}}|{{truncate this.id 7}}> - {{this.message}} (by {{this.author.name}}) {{/each}} ``` You can use any data from the webhook payload in your templates using Handlebars syntax. HookFlo allows you to filter events based on their content: 1. Go to **Alert Rules** → **Create Rule** 2. Source: Your GitHub webhook 3. Add conditions like: * Only alert on pull requests to the main branch: ```json theme={null} { "headers.x-github-event": "pull_request", "pull_request.base.ref": "main" } ``` * Only alert on failed workflow runs: ```json theme={null} { "headers.x-github-event": "workflow_run", "workflow_run.conclusion": "failure" } ``` 4. Configure your notification channel and template 5. Save the rule This powerful filtering ensures you only receive alerts for the specific events you care about. ## Example: Pull Request Review Alerts via Slack Let's set up a complete example of notifying your team when pull requests need review: 1. Follow the steps above to create a repository webhook in GitHub 2. When selecting events, choose **Let me select individual events** 3. Select the following events: * `Pull request reviews` * `Pull requests` 4. Set up a secret and add it to both GitHub and HookFlo 1. Create a pull request in your repository 2. Have someone (or yourself) review the PR and request changes 3. Check your Slack channel for the alert 4. Verify the formatting and content match your template ## Example: Critical Issue Alerts via Email Set up alerts when issues are labeled as "critical" or "bug": 1. Follow the steps above to create a repository webhook in GitHub 2. When selecting events, choose **Let me select individual events** 3. Select the `Issues` event 4. Set up a secret and add it to both GitHub and HookFlo 1. Create an issue in your repository 2. Add the "critical" or "bug" label to the issue 3. Check your email for the alert 4. Verify the formatting and content match your template ## Troubleshooting If you're seeing webhook verification errors: 1. Double-check that you've entered the exact same secret in both GitHub and HookFlo 2. Ensure there are no extra spaces or special characters in your secret 3. Verify that the Content-Type in GitHub is set to `application/json` 4. Check if you're using the correct HookFlo webhook URL GitHub's webhook signature is case-sensitive and must match exactly. If you're still having issues, try generating a new secret. If certain events aren't being received: 1. In GitHub, go to your webhook settings and check the "Recent Deliveries" tab 2. Look for any failed deliveries and check their response codes 3. Verify that you've selected the specific event types in GitHub's webhook configuration 4. Check your HookFlo webhook logs to see if events are being received but filtered out 5. For organization webhooks, ensure the repository is included in the webhook scope If webhook deliveries are timing out: 1. GitHub expects a response within 10 seconds or it will mark the delivery as failed 2. GitHub will retry failed webhook deliveries up to 3 times 3. Check if your HookFlo webhook is processing events efficiently 4. Consider implementing asynchronous processing for complex event handling ## Security Considerations When setting up webhook integrations between GitHub and HookFlo, keep these security best practices in mind: * **Always use a webhook secret**: This prevents unauthorized requests to your webhook endpoint * **Validate all webhook signatures**: HookFlo does this automatically when you provide your secret * **Limit the scopes of your webhooks**: Only subscribe to events you actually need * **Use HTTPS only**: All webhook URLs should use encrypted connections * **Regularly audit webhook configurations**: Remove unused or outdated webhooks * **Be careful with sensitive data**: Consider what information is included in your notifications * **Monitor webhook activity**: Regularly review webhook events for suspicious patterns ## Congratulations! 🎉 You've successfully set up real-time GitHub event tracking and alerting with HookFlo! Your team can now receive immediate notifications about important repository events, helping you respond quickly to critical issues, coordinate code reviews, and stay informed about your project's development activity. Need more help? [Contact our support team](mailto:team.hookflo@gmail.com) or join our [Discord forum](https://discord.gg/SNmCjU97nr) or [DM me directly on X](https://x.com/Prateek53788134). # Overview Source: https://docs.hookflo.com/webhook-platforms/overview Overview of supported webhook platforms and integration options Hookflo supports webhook integrations with a variety of popular platforms. This page provides an overview of all supported platforms and links to detailed integration guides. ## Supported Platforms Database events, authentication, and realtime notifications User authentication and management events Payment processing, subscription management, and billing events Repository events, issues, pull requests, and more ## Common Integration Steps While each platform has its own specific setup requirements, most integrations follow these general steps: 1. **Generate a webhook URL in Hookflo**: Create a new webhook endpoint in your Hookflo dashboard 2. **Configure security credentials**: Set up authentication for secure webhook communication 3. **Select events to monitor**: Choose which events should trigger notifications 4. **Add the webhook URL to the platform**: Configure the platform to send events to your Hookflo endpoint 5. **Test the integration**: Trigger a test event to verify the setup ## Event Processing When an event is received from any platform, Hookflo: 1. **Verifies the webhook**: Authenticates the request using platform-specific verification methods 2. **Parses the payload**: Extracts relevant information from the webhook data 3. **Delivers notifications**: Sends alerts to the configured channels 4. **Logs notifications**: Log all the event delivery in Notification Logs ## Security Considerations All webhook integrations in Hookflo employ platform-specific security measures including: * **Signature verification**: Validating that webhooks are genuinely from the claimed source * **Secret management**: Secure storage of webhook secrets and tokens * **HTTPS only**: All webhook URLs use encrypted connections * **Request validation**: Checking timestamp, content, and format of incoming webhooks For more details on securing your webhook integrations, see our [Security Best Practices](/security/best-practices) guide. ## Custom Platforms If you need to integrate with a platform that isn't listed here, you can use our [generic webhook](/webhook-platforms/generic) option which provides a flexible endpoint that can accept webhooks from any source. but payload would be unsigned in this case. ## Coming Soon We're constantly expanding our platform integrations. Here are some platforms we plan to support in the near future: * Vercel * AWS EventBridge * Linear * MongoDB Atlas Have a platform you'd like us to support? [Let us know](mailto:team.hookflo@gmail.com)\ or [DM me directly on X](https://x.com/Prateek53788134) # Stripe Source: https://docs.hookflo.com/webhook-platforms/stripe Set up webhooks to receive notifications for payment and subscription events from Stripe ## Integration Guide This guide will walk you through setting up a webhook integration between Stripe and Hookflo, enabling you to receive alerts for payment, subscription, and other financial events. Stripe webhooks are secured using a signing secret that verifies the authenticity of each webhook event. Hookflo uses this signature to validate that incoming requests are genuinely from Stripe. ## Prerequisites * A Hookflo account with an active project * A Stripe account with admin access * Basic understanding of Stripe's payment processing system ## Integration Overview The integration process follows these key steps: 1. Set up a webhook in Hookflo 2. Configure notification channels (email/Slack) 3. Connect Stripe to Hookflo 4. Configure Stripe to send webhooks 5. Test the integration ## Setting Up Your Hookflo Webhook After logging into Hookflo, follow these steps to create and configure your Stripe webhook: 1. From your [Hookflo Dashboard](https://www.hookflo.com/dashboard/webhooks), navigate to > **Manage Webhooks** 2. Click on **+ Create Webhook** 3. Your webhook will be created in an inactive state by default Once created, you'll see your webhook in manage webhooks table.
Create Webhook Screen
1. Toggle the **Email Notifications** switch to enable email alerts 2. In the dialog box that appears, enter the email address where you want to receive notifications 3. Select an email template from the dropdown menu 4. Click **Preview Template** to see how your notifications will look 5. Use the editor to customize the template if needed 6. Click **Save Configuration** to confirm your settings Email notifications are perfect for critical alerts that require immediate attention and have lower usage limits. Use it for critical Alerts.
Email Configuration Dialog
1. Toggle the **Slack Notifications** switch to enable Slack alerts 2. In the dialog box, paste your Slack webhook URL (see 3. ) 4. Keep the random generated name or enter a custom one (optional) 5. Select a notification template from the available options 6. Preview and edit the template as needed 7. Click **Save Configuration** to confirm your settings Slack notifications are ideal for team collaboration and awareness. Highly recommended to use Slack as it has 3x usage limits compared to email.
Slack Configuration Dialog
1. Click the **Connect** button to activate your webhook 2. Select **Stripe** as application to integrate 3. A configuration panel will appear with your webhook configurations: * **Webhook URL**: The HTTP POST request endpoint Stripe will send events to * **Webhook Signing Secret**: Signing Secret generated by Stripe 4. You'll need to add your Stripe Webhook Signing Secret in the next steps 5. Copy the **Webhook URL** for the next section You can also configure notification channels from this panel if you haven't done so already.
Connection Configuration Panel
## Configuring Stripe Now that your HookFlo webhook is set up, you need to configure Stripe to send events to it: 1. Log in to your [Stripe Dashboard](https://dashboard.stripe.com/) 2. Navigate to **Developers** > **Webhooks** 3. Click **Add Destination** 4. Enter your HookFlo webhook URL that you copied from the previous step 5. Under **Events to send**, select the events you want to monitor * For payment events: `payment_intent.succeeded`, `payment_intent.payment_failed`, etc. * For subscription events: `customer.subscription.created`, `invoice.payment_succeeded`, etc. * For customer events: `customer.created`, `customer.updated`, etc. 6. Click **Add endpoint** *Below screenshots are from Stripe Test Dashboard might differ in Live environment, But flow of integration with Hookflo will remains same.*
Stripe Webhook Configuration Stripe Webhook Configuration Stripe Webhook Configuration Stripe Webhook Configuration
After creating the webhook endpoint in Stripe: 1. In your Stripe dashboard, find your newly created webhook endpoint 2. Click **Reveal** next to the signing secret 3. Copy the signing secret (it starts with `whsec_`) This secret is crucial for verifying that webhook events are genuinely from Stripe. \*Below screenshots are from Stripe Test Dashboard might differ in Live environment, But flow of integration with Hookflo will remains same. Stripe Get Secret Pn
1. Return to the HookFlo dashboard 2. Navigate to your Stripe webhook configuration 3. Find the "Webhook Signing Secret" field 4. Paste the Stripe signing secret you copied 5. Click **Save Configuration** This step completes the secure connection between Stripe and HookFlo.
HookFlo Signing Secret Configuration
## Testing Your Integration To ensure your integration is working properly: 1. In the Stripe dashboard, find your webhook endpoint 2. Click **Send test webhook** 3. Select an event type (e.g., `payment_intent.succeeded`) 4. Click **Send test webhook** to deliver a sample webhook to HookFlo
Stripe Test Webhook
1. Return to your HookFlo dashboard 2. Navigate to [Notification Logs](https://www.hookflo.com/dashboard/logs) 3. You should see the test events appear with details about the changes 4. If you've configured notification channels, check your email or Slack for alerts This confirms that your Stripe webhook is correctly sending events to HookFlo, and your notification channels are properly configured.
Event Logs in HookFlo
## Supported Events Stripe offers a comprehensive set of webhook events. Here are some of the most commonly used categories: ### Payment Events * `payment_intent.succeeded`: When a payment is successfully processed * `payment_intent.payment_failed`: When a payment attempt fails * `charge.succeeded`: When a charge is successful * `charge.failed`: When a charge fails * `charge.refunded`: When a charge is refunded ### Customer Events * `customer.created`: When a new customer is created * `customer.updated`: When customer details are updated * `customer.deleted`: When a customer is deleted ### Subscription Events * `customer.subscription.created`: When a subscription is created * `customer.subscription.updated`: When a subscription is updated * `customer.subscription.deleted`: When a subscription is canceled * `invoice.payment_succeeded`: When a subscription payment succeeds * `invoice.payment_failed`: When a subscription payment fails ### Product & Price Events * `product.created`: When a product is created * `price.created`: When a price is created * `product.updated`: When a product is updated For a complete list of events, refer to the [Stripe API documentation](https://stripe.com/docs/api/events/types). ## Webhook Payload Structure Here's an example of what the webhook payload looks like for a `payment_intent.succeeded` event: ```json theme={null} { "id": "evt_1NwXaIJFJbz6iDgO7bCoVSfK", "object": "event", "api_version": "2022-11-15", "created": 1633027930, "data": { "object": { "id": "pi_3NwXaHJFJbz6iDgO0gnbIVoc", "object": "payment_intent", "amount": 2000, "amount_received": 2000, "currency": "usd", "customer": "cus_LTf0miiJ4j18Ny", "payment_method": "pm_1NwXaHJFJbz6iDgObthB6dgO", "payment_method_types": ["card"], "status": "succeeded" } }, "livemode": false, "type": "payment_intent.succeeded" } ``` ## Advanced Configuration HookFlo allows you to fully customize your notification templates: ### Email Template Example: ``` Subject: [{{type}}] Stripe Payment Event Hello, The following {{type}} event occurred: Amount: {{data.object.amount | currency(data.object.currency)}} Customer: {{data.object.customer}} Time: {{created | date}} Best regards, The HookFlo Team ``` ### Slack Template Example: ``` *{{type}} Event* Amount: {{data.object.amount | currency(data.object.currency)}} Customer: {{data.object.customer}} Status: {{data.object.status}} Time: {{created | date}} ``` You can use any data from the webhook payload in your templates. Stripe has separate webhook endpoints for test and live modes. Best practices: 1. Set up separate webhooks in HookFlo for test and live environments 2. Use clear naming conventions to distinguish between test and production webhooks 3. Configure different notification channels for test vs. live events This separation helps prevent confusion between test data and real customer transactions. ## Troubleshooting If you're seeing signature verification errors: 1. Double-check that you've entered the correct signing secret in HookFlo 2. Ensure you're using the signing secret for the specific webhook endpoint 3. Check if the signing secret has been rotated in Stripe recently 4. Verify your server's clock is accurately synchronized (time drift can cause verification failures) If certain events aren't being received: 1. Verify that you've selected those specific event types in Stripe's webhook configuration 2. Check Stripe's webhook delivery logs to confirm they're being sent 3. Ensure your HookFlo webhook is active and properly configured If webhook deliveries are timing out: 1. Check Stripe's webhook logs for timeout errors 2. Stripe will automatically retry webhook deliveries that fail 3. You can manually trigger a retry from the Stripe dashboard ## Example: Monitoring Successful Payments Here's a complete example of setting up HookFlo to alert your team when payments succeed: Follow the steps above to create a Stripe webhook in HookFlo and configure your notification channels. 1. In your Stripe dashboard, go to **Developers** > **Webhooks** 2. Create a new webhook using your HookFlo webhook URL 3. Select the `payment_intent.succeeded` event type 4. Copy your webhook signing secret 5. Add the signing secret to your HookFlo Stripe configuration 1. Use Stripe's test mode to create a test payment 2. Check your configured notification channels for alerts 3. Verify the event appears in your HookFlo notification logs ## Security Considerations When setting up webhook integrations between Stripe and HookFlo, keep these security best practices in mind: * **Protect your signing secret**: Never expose the Stripe signing secret in client-side code * **Validate all webhooks**: Always use the signing secret to verify webhook authenticity * **Use HTTPS only**: Ensure all webhook URLs use encrypted connections * **Implement proper access controls**: Limit who can view sensitive payment information * **PCI compliance**: Be careful about storing or logging complete payment details ## Congratulations! 🎉 You've successfully set up real-time payment event tracking and alerting between Stripe and HookFlo in just a few minutes. Your team can now receive immediate notifications about important payment events, helping you respond quickly to critical situations. Need more help? [Contact our support team](mailto:team.hookflo@gmail.com) or join our [Discord forum](https://discord.gg/SNmCjU97nr) or [DM me directly on X](https://x.com/Prateek53788134). # Supabase Source: https://docs.hookflo.com/webhook-platforms/supabase Connect Hookflo with Supabase to receive alerts for database and authentication events ## Integration Guide 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. ## Prerequisites * A Hookflo account with an active project * A Supabase project with admin access * Basic understanding of Supabase database and functions ## Integration Overview The integration process follows these key steps: 1. Set up a webhook in Hookflo 2. Configure notification channels (email/Slack) 3. Connect Supabase to Hookflo 4. Test the integration ## Setting Up Your Hookflo Webhook After logging into Hookflo, follow these steps to create and configure your Supabase webhook: 1. From your [Hookflo Dashboard](https://www.hookflo.com/dashboard/webhooks), navigate to > **Manage Webhooks** 2. Click on **+ Create Webhook** 3. Your webhook will be created in an inactive state by default Once created, you'll see your webhook in manage webhooks table.
Create Webhook Screen
1. Toggle the **Email Notifications** switch to enable email alerts 2. In the dialog box that appears, enter the email address where you want to receive notifications 3. Select an email template from the dropdown menu 4. Click **Preview Template** to see how your notifications will look 5. Use the editor to customize the template if needed 6. Click **Save Configuration** to confirm your settings Email notifications are perfect for critical alerts that require immediate attention and have lower usage limits, Use it for critical Alerts.
Email Configuration Dialog
1. Toggle the **Slack Notifications** switch to enable Slack alerts 2. In the dialog box, paste your Slack webhook URL (see 3. ) 4. Keep the random generated name or enter a custom one (optional) 5. Select a notification template from the available options 6. Preview and edit the template as needed 7. Click **Save Configuration** to confirm your settings Slack notifications are ideal for team collaboration and awareness, Highly recommended to use Slack and this has 3x Usage limits than email.
Slack Configuration Dialog
1. Click the **Connect** button to activate your webhook 2. Select **Supabase** as application to integrate 3. A configuration panel will appear with your webhook credentials: * **Webhook URL**: The HTTP POST request endpoint Supabase will send events to * **x-webhook-id**: Your unique webhook identifier * **x-webhook-token**: Your security token for authentication 4. Copy these values for the next section You can also configure notification channels from this panel if you haven't done so already.
Connection Configuration Panel
## Configuring Supabase Now that your HookFlo webhook is set up, you need to configure Supabase to send events to it: 1. Log in to your [Supabase Dashboard](https://supabase.com/dashboard) 2. Select your [Project](https://supabase.com/dashboard/projects) 3. Select **Integrations** option in the left sidebar 4. Choose Database Webhooks (Official) app from panel, Install it if not already done. 5. After Clicking Database Webhooks app you will see 2 tabs Overview and Webhooks choose Webhooks and proceed with next step. This is where you'll create database webhooks that trigger on table events.
Supabase Dashboard Navigation
1. Click **Create a new webhook** 2. Provide a descriptive name for your webhook (e.g., `hookflo-users-events`) 3. Select the table you want to monitor from the dropdown 4. Choose which events to trigger the webhook: * **INSERT**: When new records are created * **UPDATE**: When existing records are modified * **DELETE**: When records are removed 5. Under **Webhook configuration** choose Type of webhook as **HTTP Request** 6. In the URL field, paste your HookFlo webhook URL 7. Add the following HTTP headers: * `x-webhook-id`: \[Your webhook ID from HookFlo] * `x-webhook-token`: \[Your webhook token from HookFlo] 8. Click **Save** to create the webhook
Create Database Webhook Form
Create Database Webhook Form
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: 1. Go to the **SQL Editor** in your Supabase dashboard 2. Run the following SQL command: ```sql theme={null} create extension if not exists http with schema extensions; ``` 3. Click **Run** to execute the command
When creating your database webhook in Supabase, you can monitor any table: * **Public schema tables**: Your application's main tables * **Auth schema tables**: Supabase authentication tables to track user-related events * **Any other schema**: Custom schemas you've created 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.
## Testing Your Integration To ensure your integration is working properly: 1. In your Supabase project, make a change to the monitored table: * Insert a new record * Update an existing record * Delete a record For authentication events, perform the corresponding action (e.g., create a new user).
1. Return to your HookFlo dashboard 2. Navigate to [Notification Logs](https://www.hookflo.com/dashboard/logs) 3. You should see the test events appear with details about the changes 4. If you've configured notification channels, check your email or Slack for alerts This confirms that your Supabase webhook is correctly sending events to HookFlo, and your notification channels are properly configured.
Event Logs in HookFlo
## Advanced Configuration For more control over your webhooks, you can use SQL to create custom triggers: ```sql theme={null} -- Create a function that will trigger the webhook create or replace function public.handle_webhook_event() returns trigger as $$ declare webhook_url text := 'https://api.hookflo.dev/webhook/supabase/[your-webhook-id]'; begin perform net.http_post( webhook_url, json_build_object( 'table', TG_TABLE_NAME, 'schema', TG_TABLE_SCHEMA, 'event', TG_OP, 'record', case when TG_OP = 'DELETE' then old else new end, 'old_record', case when TG_OP = 'UPDATE' then old else null end )::text, 'application/json', array[ ('x-webhook-id', '[Your webhook ID from HookFlo]'), ('x-webhook-token', '[Your webhook token from HookFlo]') ] ); return new; end; $$ language plpgsql security definer; -- Create a trigger on your table create trigger on_users_changed after insert or update or delete on public.users for each row execute procedure public.handle_webhook_event(); ``` This approach gives you fine-grained control over what data is sent and when. HookFlo allows you to fully customize your notification templates: ### Email Template Example: ``` Subject: [{{event}}] New activity on {{table}} Hello, The following {{event}} event occurred on the {{table}} table: Record ID: {{record.id}} Time: {{timestamp}} Details: {{#each record}} - {{@key}}: {{this}} {{/each}} Best regards, The HookFlo Team ``` ### Slack Template Example: ``` *{{event}} Event on {{table}}* Record ID: {{record.id}} Time: {{timestamp}} *Details:* {{#each record}} • {{@key}}: {{this}} {{/each}} ``` You can use any data from the webhook payload in your templates. ## Webhook Payload Structure Here's an example of what the webhook payload looks like for different events: ### Database Event Payload ```json theme={null} { "table": "users", "schema": "public", "event": "INSERT", "record": { "id": "d9be2f69-5d13-4ac3-8f77-1193e9b1bfe3", "email": "user@example.com", "created_at": "2023-04-01T12:00:00Z" }, "old_record": null } ``` ### Authentication Event Payload ```json theme={null} { "event": "SIGNED_UP", "instance": "your-project-ref", "timestamp": "2023-04-01T12:00:00Z", "user": { "id": "d9be2f69-5d13-4ac3-8f77-1193e9b1bfe3", "email": "user@example.com" } } ``` ## Troubleshooting If your webhook isn't sending events to HookFlo: 1. Check that the `http` extension is enabled in your Supabase project 2. Verify that your trigger is correctly set up on the table 3. Check the Supabase logs for any errors related to the webhook function 4. Ensure the webhook URL and headers are correctly configured 5. Verify that your HookFlo webhook is in the active state If HookFlo is receiving events but you're not getting notifications: 1. Check your notification channel configurations in HookFlo 2. Verify that your email/Slack webhooks are correctly set up 3. Check if you have any conditional rules that might be filtering out your events 4. Look for any errors in the HookFlo event logs 5. Try a test notification from the HookFlo dashboard For tables with high-frequency changes: 1. Consider adding conditions to your triggers to only fire on specific records 2. Implement rate limiting in your webhook function 3. Use batch processing for high-volume tables 4. Set up more specific alert rules to filter out noise ## Example: Monitoring New User Signups Here's a complete example of setting up HookFlo to alert your team when new users sign up: Follow the steps above to create a Supabase webhook in HookFlo and configure your notification channels. 1. In your Supabase dashboard, go to **Database** > **Webhooks** 2. Create a new webhook named "user-signups" 3. Select the `auth.users` table (or your custom users table) 4. Choose the **INSERT** event type to trigger on new user creations 5. Add your HookFlo webhook URL and headers (x-webhook-id and x-webhook-token) 6. Save the webhook # Security Considerations When setting up webhook integrations between Supabase and HookFlo, keep these security best practices in mind: * **Protect your webhook credentials**: Keep your x-webhook-id and x-webhook-token secure * **Use row-level security**: Limit what data can be included in webhook payloads * **Implement data minimization**: Only send the fields you actually need * **Regular audits**: Remove webhooks from tables that no longer need monitoring * **Use HTTPS only**: Ensure all webhook communications use secure protocols ## Congratulations! 🎉 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](mailto:team.hookflo@gmail.com) or join our [Discord forum](https://discord.gg/SNmCjU97nr) or [DM me directly on X](https://x.com/Prateek53788134).