Webhook triggered when a contact unsubscribes from email

Hi,

I’m trying to trigger a webhook when a contact unsubscribes from one or all email types.

If this is possible, what property change should I be subscribed too?

If it isn’t, does anybody have any recommendations on the best way to keep subscriptions/unsubscriptions of contacts synced with systems external to Hubspot? Or am I looking at having to do a regular complete contact sync through the api?

Thanks!

Dave

Hi @sligodave :waving_hand:

As far as I can tell, this is not possible via HubSpot’s Webhook Subscriptions feature. However, you might be able to achieve this via HubSpot Workflows. For example:

  1. Create new Contact-based Workflow
  2. Configure Workflow enrollment trigger:
    1. When an event occurs
      1. Updated email subscription status
    2. Make sure to enable re-enrollment
  3. Configure your workflow action(s) according to your use case (e.g. send a webhook out to an external service, or maybe handle everything via a custom code action).

Your enrollment trigger should look something like this:

I hope this proves helpful. Please let me know if you have any follow-up questions.

Hi Zach,

Thank you very much for the insight. I appreciate you taking the time to break down an alternative route for me too. I’ll give it a go and see how I get on.

Thanks again,

Dave

Hi Jach,

I just wanted to pop back and say that your suggested solution worked perfectly.

Thank you again.

Dave

Hi @sligodave

That’s great, I’m glad it helped :slightly_smiling_face: