Object creation lag

Hello,

When i create a company with API with ‘’/crm/v3/objects/companies" and i search it right after with the domain name, the created company doesn’t show up. If I wait a few seconds, it finally shows up in search (/crm/v3/objects/companies/search). How can I be sure the company i created using the API will be REALLY created in hubspot?

Thanks in advance,

Cédric

Hi @CPatane,

Whenever you create a company using the POST endpoint of the Companies API, you will get a response of whether it was created successfully or there was an error.

The success response of “201 Created” will contain the details of the record that was created, including the properties you used to create and the id that was assigned to that record.

If the API response comes back with an error code, you will know that the company has not actually been created in HubSpot.

Hope this helps!