Issue Registering Multiple Webhooks with Different Target URLs in HubSpot
Hi HubSpot Support Team,
We are developing aSaaS applicationthat integrates with HubSpot and listens for webhook events from different businesses that install our app.
Each business that installs our app has unique credentials, and we need to process webhook events differently for each business.
Problem Statement: We need to register multiple webhooks in HubSpot, where each webhook should have a differenttargetUrl. However, based on the API documentation and testing, it appears that HubSpot allows onlyonewebhook configuration per app. Our expected behavior is:
Each business that installs our app should have adifferent webhook target URL.
ThetargetUrlshould include dynamic parameters to help us identify which business sent the webhook.
When a webhook event is triggered, we need to fetch the business-specific credentials and process the event accordingly.
Challenges Faced:
Unable to Register Multiple Webhooks with Different Target URLs
We attempted to call thePUT /webhooks/v3/{appId}/settingsAPI multiple times with differenttargetUrlvalues, but only one webhook configuration is stored at a time.
The latestPUTrequest overwrites the existing webhook settings instead of creating a new webhook.
No Clear Way to Dynamically Pass Business Identifiers
We do not maintain a database to storeportalIdor other HubSpot-related identifiers.
Is there a way to include custom fields in webhook requests that we can configure via API calls?
Can we utilizeportalIdorcompanyId(are they the same?) to differentiate businesses?
How to Handle Multi-Tenant Webhooks Efficiently?
Since our app is installed by multiple businesses, we need a way todifferentiate webhook eventsbetween businesses.
Is there a HubSpot-recommended best practice for handlingmulti-tenant webhook integrations?
Questions for HubSpot Support:
Does HubSpot support registering multiple webhooks with differenttargetUrls for a single app?
Is there a way to dynamically pass business-specific identifiers in webhook payloads?
What is the recommended approach for handling webhooks in a multi-tenant SaaS app where different businesses install the same HubSpot app?
Is there any workaround or best practice to handle our use case efficiently?
Any guidance or best practices from the HubSpot team would be highly appreciated. Looking forward to your response!
Issue Registering Multiple Webhooks with Different Target URLs in HubSpot
Hey, @Storeganise👋 Thanks for your question. To set the correct expectations, this is a peer-to-peer support forum where answers are provided by other community members. HubSpot Product and Engineering folks do not answer questions in this forum. We'll leave this open for other community members to view. Thanks! — Jaycee
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !