How does HubSpot contact matching really works?

For clarification: we are a third party that developed native integration with HubSpot using API v3/v4.

Before creating a contact in the customer’s CRM, we normally try to find it using some queries with the Search API, because we would otherwise not create it.

The search consists basically in comparing name, e-mail, company (as in the contact property) and associated company ID. There could be other steps, but this covers the majority of cases.

There are cases where the customer has a contact entry for a person working in an outdated company. Instead of updating the contact, the customer wants to have another contact for the same person, in the new company. We can also associate those contacts so the customer can easily navigate between the contact’s history both companies.

This works for the majority of customers we have, but I’ve been seen error cases that will deny the contact creation, reason being Contact already exists. Existing ID: 12345678

Contact obviously has same name, but I sent different e-mail, different company, different website, different associated company ID, even different state and still got this message. I am confused on how to proceeed. Customer has no other unique property too for Contact object.

Is there a default matching logic for all customer or can they customize it?

Hey @DevUserGems, Happy Monday!

HubSpot’s default contact matching logic uses the email as the primary unique identifier. Even if other properties differ, the system might flag it as a duplicate if the name and email match.

At the moment, full customization of this matching process isn’t possible, but you can use custom properties and workflows to manage contact creation more effectively.

To our top experts, @TomM2 and @franksteiner79 do you have any recommendations for @DevUserGems matter?

Thank you,

Pam

Thank you for the feedback.

The problem, however, is that I got duplicate entry errors even for different e-mails, which is why I am trying to understand how it would match other than by e-mail.

Hey, @DevUserGems, thanks for the clarification!

HubSpot’s contact matching can sometimes merge contacts based on other factors like name, phone number, or company domain if those fields are similar. To avoid duplicates, you can adjust the contact properties used for matching or manually review the contacts in question.

I hope this helps.

Pam