# Contacts not being instantly created

**URL:** <https://community.hubspot.com/t/contacts-not-being-instantly-created/11262>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [October 11, 2018, 9:01am UTC](https://community.hubspot.com/t/contacts-not-being-instantly-created/11262 "2018-10-11T09:01:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 11, 2018, 9:01am UTC](https://community.hubspot.com/t/contacts-not-being-instantly-created/11262/1 "2018-10-11T09:01:56Z")

</div>

Hello,

I am encountering the following issue: I have users and deals on my side (not yet on HubSpot) and I want to create them in HubSpot using the API.  
One contact can be linked to a deal, but for that I need the vid (HubSpot id) of the contact, so here is what I do:  
1 - Batch creating all the users using their email  
2 - Getting all the users newly created (because I need their vid and the batch create does not return them)  
3 - Creating the deals with their associated users thanks to the previously get vids

The issue I am having is that on step 2, contacts are not finished being created on HubSpot. It takes up to 30s with 4 contacts (didn’t try more). So if I immediately create then get, the get returns nothing. A sleep of 30s solves the issue but that’s not a good solution.

I wondered if I am doing something wrong, or if this is a known issue, and if there is a solution out there?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 16, 2018, 4:55pm UTC](https://community.hubspot.com/t/contacts-not-being-instantly-created/11262/2 "2018-10-16T16:55:17Z")

</div>

Hi [@MatthieuD](https://community.hubspot.com/u/matthieud),

You’re not doing anything wrong; this is expected behavior. As David touches on [here](https://integrate.hubspot.com/t/retrieve-contact-id-after-contact-creation/1787/2), contact records are not created immediately and may not be available for a few seconds.

Delaying the `GET` request seems to be the only solution, per [similar topics](https://integrate.hubspot.com/t/how-to-associate-a-deal-with-a-newly-created-contact-using-timeline-events/5843).

I recognize that the process could be streamlined, though. If you feel inclined, I recommend posting your feedback on the [HubSpot Community Ideas Forum](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas), especially receiving the contact `vid`s in the [bulk endpoint’s](https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update) response.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 25, 2018, 2:36pm UTC](https://community.hubspot.com/t/contacts-not-being-instantly-created/11262/3 "2018-10-25T14:36:57Z")

</div>

Ok,

I used a fetcher on a timed loop on our end to make that work (fetching data of n contacts by emails, and if all the data is not returned, retrying n seconds later). With of course a limited number of retries. It works pretty well.

I do not find it pretty but if you say it is the only option, I guess we will do with that.

I’ll post something on the community ideas forum, see if this can help.

Thank for your answer!
