I’d like to know how to best store the Hubspot identifier associated with a newly created contact.
Upon user creation in our app we send a
POST request to:
According to the documentation and true to our experience of the API, this API call returns a
204 HTTP response code upon successful creation, but returns an empty body (i.e. does not return the identifier for the newly created contact).
We’ve thought about sending a subsequent request to:
right after the first API call, but we’re afraid that there might be a race condition in the
WRITE / READ pattern it induces (i.e. if there’s some latency in the second call doesn’t see the newly created user).
Are those two calls generally safe to issue one after another.
We’d like to store the Hubspot identifier on our app’s side so that all calls to the API at a later date can be based on that identifier instead of the user email, which can be updated at any time.
Thanks for your reply on this matter.