Our application submits new contact to Hubspot by posting to the Hubspot form API. Unfortunately, despite sending the
hs_context parameter, with the
hutk cookie included, we are getting roughly 50% of contacts listed as coming from Offline Sources.
We also use Hubspot's email API to send a verification email to these new contacts, Our original assumption was that we had a race condition on our end resulting in the email request being sent to Hubspot before the form request. However, even after implementing a 5 second delay between the form API response and the email API send, we are seeing the same problem.
We notice that contacts listed as Offline Sources seem to have the lifecycle set to "Subscriber" before the form submission in their history. Proper contacts (those with sources that are not offline) either get set to "Subscriber" after the form submission, or not at all (going straight to "Lead"). I'm not sure if this is a clue or not at the moment.
Is it possible that Hubspot is giving priority to the email send? What else could cause users that were added via form API submissions to list as offline sources?
Examples of contacts created properly:
Examples of contacts from Offline Sources:
Thanks in advance,