# Sync on merged contacts using HubSpot API

**URL:** <https://community.hubspot.com/t/sync-on-merged-contacts-using-hubspot-api/17573>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [December 5, 2019, 12:49pm UTC](https://community.hubspot.com/t/sync-on-merged-contacts-using-hubspot-api/17573 "2019-12-05T12:49:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dor](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dor/32/25270_2.png) [@Dor](https://community.hubspot.com/u/Dor)\
**Post date:** [December 5, 2019, 12:49pm UTC](https://community.hubspot.com/t/sync-on-merged-contacts-using-hubspot-api/17573/1 "2019-12-05T12:49:29Z")

</div>

Hi,

We’re syncing HubSpot data into our platform using the API for our customers. In order to do that, we pull all the data on the first integration, and then we pull daily diffs from the API and we use webhooks in order to update on deleted contacts.

How should we handle merged contacts?

it seems that the merged contact isn’t treated as deleted and hence doesn’t send through the webhook.

How can we sync our platform with merged contacts?

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [December 6, 2019, 3:13am UTC](https://community.hubspot.com/t/sync-on-merged-contacts-using-hubspot-api/17573/2 "2019-12-06T03:13:07Z")

</div>

Hi @Dor,

Currently, there isn’t a Webhook event for merges. The only workaround now is to poll contacts and if the contact has been merged, the merged vid values will appear in the merged-vids array (Learn more here: [Get all contacts | Contacts API](https://developers.hubspot.com/docs/methods/contacts/get_contacts))

That said, I’d recommend upvoting and comment on this existing similar idea - [Merge Contact Subscription for Webhooks](https://community.hubspot.com/t5/HubSpot-Ideas/Merge-Contact-Subscription-for-Webhooks/idi-p/26663) so that it’s visible to the HubSpot product team and other HubSpot customers and developers. Hopefully this will gather more interest.
