API updating contacts in hubspot from CRM - duplicates


Hi we are using the endpoint api.hubapi.com/contacts/v1/contact/batch to update our contacts on HubSpot. We are also syncing our current crm into hubspot. The problem is when a customer changes their email address in a hubspot form a new contact is created or an existing contact is updated which causes the next sync to create a new contact… is there an api to merge contacts or does anyone know how to deal with this?


Hi Jonny,

Here is the merge endpoint documentation: