Contact already exist error with form submission through API

Hi everybody,

For a client we integrated HubSpot and included some embedded forms on their website. However, some are hard coded forms in their CMS system. This CMS system is a “custom made” one and the dev group built the hard-coded forms in Javascript (which HS cannot pick up as non-HS-form, so we cannot see the forms in HS). Therefore they built an API that throws submitted forms to their HubSpot account so we see contacts made that have the information of the form in their profile.

Now every time a contact, that is already known in HS, submits this card-coded with API connected form the client receives a notification that the contact already exists.

{"status":"error","message":"Contact already exists. Existing ID: 17901","correlationId":"88d52300-b8d0-4cc7-9842-bbd2073a4144","category":"CONFLICT"}

Since the sumbmitted forms are job applications and somebody can submit applications to several jobs, we now cannot see which jobs the person applied for in HS. Which of course confuses and disrupts the work of recruiters.
Now my question is, what can cause this error?

Hi @FMoor

Did the dev team use the create contact API end-point or the form-submit end-point?
If using the create contact end-point, you really should check if the contact exists first.

However, the form-submit end-point is often preferably as it will dedupe against existing contacts automatically.

Hope this helps.

Hi! Yes, I just got word from the HubSpot customer service that probably the dev team used the Contact API and not the Form submission API. Thank you for your answer!