/contacts/v1/contact/batch/ creates already existing user

I have conducted an investigation into an issue pertaining to the re-creation of old contacts in HubSpot, accompanied by the triggering of automation emails in some cases.

Today, I identified at least one contact exemplifying this issue.
I found that the contact’s `createdate` timestamp is currently set to `2024-05-08T17:15:26.505Z`. However, earlier today, I retrieved and archived all observed contacts via the `/crm/v3/objects/contacts/search` endpoint, storing it in a CSV file. Upon reviewing this file, I can definitively state that the contact existed with a `createdate` timestamp of `2024-05-06T16:30:03.340Z`.

It’s expected for a contact with the same email to be updated, but in this case, it was unexpectedly created anew.

For context:

I have a script in place that routinely pushes updates for all active customers via the `/contacts/v1/contact/batch/` endpoint several times per hour. This script operates within a dynamic data environment, hence the necessity and frequency of updates. The total volume of customers currently stands at approximately 3.3k.

Hey, @VMush :waving_hand: Did you already raise this with Support? If not, I’d open a ticket and state:

  • this is not a custom coding question
  • you are using the API
  • and when I do X, then Y happens. But I’m expecting to see Z
  • Link them to the contact record, and include the request and response for the double-created contact

Talk soon,

Jaycee

Hi @VMush

Please use the following doc link to achieve the above problem statement.

https://legacydocs.hubspot.com/docs/methods/contacts/batch_create_or_update

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!