I'd like to uninstall our app from a churned customers account so that it stops sending us webhooks

AMurphy31
Participant

Using these docs: https://developers.hubspot.com/beta-docs/guides/api/app-management/webhooks#delete-a-subscription I see the webhooks/v3/{appId}/subscriptions/{subscriptionId} endpoint but I do not know the customer's subscription ID. I have attempted to hit the `https://api.hubapi.com/webhooks/v3/{appId}/subscriptions` endpoint but it says it requires an api key. How do I get this API key? The docs point to https://developers.hubspot.com/docs/faq/developer-api-keys, but the link is broken. The Hubspot API key from the https://app.hubspot.com/developer/[ID HERE]/applications does not work. 

2 Accepted solutions
HubDoPete
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Thanks Mike and hi Amanda @AMurphy31 

 

Amanda I feel your pain. Today (unless HubSpot has a neat surprise in store) you cannot force your public app to be uninstalled from a customer portal.

 

Some of our apps, like DoPricer, receive thousands of line item webhooks from portals that ran a free trial. We can only try and reach each customer and request they uninstall our app.

 

I call these "zombie" webhooks. Roaming the planet from dead portals that do not reply 🙂

 

We have now optimised our webhook receiving endpoints to discard Zombie-spawning portal IDs that we know are inactive, to reduce processing cost/load.

 

I hope HubSpot will soon let developers uninstall. Today it is in the hands of the portal owners.

 

best

Pete

 

Now I lie in wait, quietly watching the zombies pass by, hoping this note will attract a reply of "Good news! The Zombie webhook slaying API call is here!!"  

 

View solution in original post

HubDoPete
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Thanks Russell, yes that is a great treat! We have been using it selectively for a few months. A very welcome feature, being able to force an app uninstall from a portal when really needed.

https://developers.hubspot.com/docs/api-reference/crm-app-uninstalls-v3/uninstall/delete-appinstalls...

View solution in original post

6 Replies 6
RBCook
HubSpot Employee
HubSpot Employee

Great news @AMurphy31 @HubDoPete - HubSpot just released a new Public API for Uninstalling Customers from an App! Or should I say...
Good news! The Zombie webhook slaying API call is here!!

 

 

HubDoPete
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Thanks Russell, yes that is a great treat! We have been using it selectively for a few months. A very welcome feature, being able to force an app uninstall from a portal when really needed.

https://developers.hubspot.com/docs/api-reference/crm-app-uninstalls-v3/uninstall/delete-appinstalls...

FarioConsulting
Top Contributor

Hi @AMurphy31 

 

The API keys are no longer the way to go.
Now, you've got to use either use private app access tokens or go via the OAuth route for authentication.

 

Cheers,

Harsh

Fario Consulting

0 Upvotes
AMurphy31
Participant

The question is, how do I stop Hubspot from sending webhooks on behalf of a specific customer? How do I uninstall their instance of my HubSpot app? I do no have OAuth because their install failed and a private app would not have access to my public app. 

0 Upvotes
Mike_Eastwood
Recognized Expert

Hi @AMurphy31 

 

Looping @HubDoPete because I remeber him mentioning this issue in a webinar we did last year.

 

Hopefully Pete can help?

 

Mike

 

Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.

HubDoPete
Solution
Key Advisor | Gold Partner
Key Advisor | Gold Partner

Thanks Mike and hi Amanda @AMurphy31 

 

Amanda I feel your pain. Today (unless HubSpot has a neat surprise in store) you cannot force your public app to be uninstalled from a customer portal.

 

Some of our apps, like DoPricer, receive thousands of line item webhooks from portals that ran a free trial. We can only try and reach each customer and request they uninstall our app.

 

I call these "zombie" webhooks. Roaming the planet from dead portals that do not reply 🙂

 

We have now optimised our webhook receiving endpoints to discard Zombie-spawning portal IDs that we know are inactive, to reduce processing cost/load.

 

I hope HubSpot will soon let developers uninstall. Today it is in the hands of the portal owners.

 

best

Pete

 

Now I lie in wait, quietly watching the zombies pass by, hoping this note will attract a reply of "Good news! The Zombie webhook slaying API call is here!!"