APIs & Integrations

NZhang
Member

How to Use Webhook to Monitor New Contacts or Companies Added to a Specific List?

SOLVE

Hi HubSpot Community,

I have created an app in HubSpot and am trying to set up a webhook to monitor when new contacts or companies are added to a specific list. However, I am having trouble finding a suitable webhook subscription for this purpose.

Could anyone provide guidance on the following:

  1. Is there a specific webhook subscription available for tracking new contacts or companies added to a list?
  2. If not, what would be the recommended approach to achieve this functionality?
  3. Any workarounds or alternative methods to monitor list membership changes effectively?
  4. Examples of webhook configurations or payloads that could help in this scenario.

Thank you in advance for your assistance!

Best regards.

0 Upvotes
1 Accepted solution
dsmarion
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

How to Use Webhook to Monitor New Contacts or Companies Added to a Specific List?

SOLVE

The only way I can think of offhand is you can create a webhook subscription that looks for a change in a property of an object.  So theoretically you could add a custom property to the contact and/or company object and a workflow could then change that property when the contact or company is added to the list.  The webhook would then fire automatically.  I do not know of any way you can create a webhook subscription based on a list change directly.

dsmarion_0-1723109859010.png

 

Scott Marion
Senior Developer @ Thread Connected Marketing

View solution in original post

0 Upvotes
7 Replies 7
dsmarion
Top Contributor | Gold Partner
Top Contributor | Gold Partner

How to Use Webhook to Monitor New Contacts or Companies Added to a Specific List?

SOLVE

Hmmm...  I think I would try creating a workflow that triggers on when a List Membership changes and then send a webhook from the workflow.  

dsmarion_1-1723108377911.png

 

dsmarion_0-1723108159547.png

 

Scott Marion
Senior Developer @ Thread Connected Marketing
0 Upvotes
NZhang
Member

How to Use Webhook to Monitor New Contacts or Companies Added to a Specific List?

SOLVE

Thank you for your suggestion!

My app is currently trying to integrate with HubSpot, and I want users to be able to monitor events by selecting the event type after authorizing my app via OAuth, without having to set up workflows in HubSpot themselves. Therefore, I need to handle the webhook configuration on behalf of the users.

Do you have any recommendations or examples on how to achieve this? Specifically, I'm looking for a way to programmatically set up webhooks to monitor list membership changes.

Thank you for your assistance!

0 Upvotes
Sylvainc1
Member

How to Use Webhook to Monitor New Contacts or Companies Added to a Specific List?

SOLVE

Hi Nzang,

I have the exact same need as you, did you found a way to subscribe contacts of a specific list to webhook without using workflows ?

Thanks for your help

0 Upvotes
dsmarion
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

How to Use Webhook to Monitor New Contacts or Companies Added to a Specific List?

SOLVE

The only way I can think of offhand is you can create a webhook subscription that looks for a change in a property of an object.  So theoretically you could add a custom property to the contact and/or company object and a workflow could then change that property when the contact or company is added to the list.  The webhook would then fire automatically.  I do not know of any way you can create a webhook subscription based on a list change directly.

dsmarion_0-1723109859010.png

 

Scott Marion
Senior Developer @ Thread Connected Marketing
0 Upvotes
NZhang
Member

How to Use Webhook to Monitor New Contacts or Companies Added to a Specific List?

SOLVE

Thank you so much for your detailed suggestion! I really appreciate the time and effort you put into explaining the approach. However, this method might increase the complexity for some users, especially if they are not familiar with HubSpot's workflow functionality.

Thanks again for your assistance!

0 Upvotes
dsmarion
Top Contributor | Gold Partner
Top Contributor | Gold Partner

How to Use Webhook to Monitor New Contacts or Companies Added to a Specific List?

SOLVE

Yes, these types of solutions are much easier using a private app and managing the workflows yourself.  I'm afraid I don't have much to say to help with public OAuth apps and workarounds for situations like this.

Scott Marion
Senior Developer @ Thread Connected Marketing
0 Upvotes
NZhang
Member

How to Use Webhook to Monitor New Contacts or Companies Added to a Specific List?

SOLVE

Thank you so much for your help and detailed explanations. I really appreciate it! I'll consider other approaches as well.

0 Upvotes