Public Beta: New API for uninstalling a public app from a HubSpot account

Today we’re releasing a new API endpoint that allows app builders to uninstall their public app from a HubSpot account:
DELETE /appinstalls/v3/external-install

On a successful request, the app will be removed from the account, and the account admins will receive an email notification that the app has been uninstalled. The email will be sent to all Super Admins for the account, and will include a link to the app’s connection page, allowing admins to reinstall the app if the uninstall was unintentional or if they wish to reinstall the integration.

How does it work?

The endpoint requires an active OAuth access token for the account you wish to uninstall the app from.

Example curl request

curl --location --request DELETE 'https://api.hubspot.com/appinstalls/v3/external-install' \
 --header 'Authorization: Bearer :HubSpot access token:' 

Copy

Uninstalling the app will remove any app features set up for the app, including removing any configured app cards, as well as unsubscribing any configured webhooks for that account.

For more details please see the endpoint documentation.

When is this happening?

The new endpoint is available in public beta now for all HubSpot accounts and public apps.

Please let us know if you have any questions by replying below.

Big news! Thanks @Dadams :raising_hands:

Thank you @Dadams, I know that this was recently released, even if I can’t find the news in your latest product release.
I have a few things to point out here:
- We should use an active AccessToken from the customer’s subscription

- We have zombie webhook calls from 2 years ago, but we don’t keep AccessTokens of old deleted users (and I think nobody should do this)
- Is there a way to remove these webhook subscriptions? Or will they stay there forever?
For sure, this could be helpful for new deleted users; we can remove them before deleting their data.
Thanks in advance