Hi everyone,
I’m using the HubSpot Import API to import Contacts and Companies into our HubSpot account. The import process works smoothly, and the API response returns a JSON object containing a “state” key with the value "STARTED", along with an “id” representing the import ID.
To check the status of the import, I found the following endpoint, which accepts the import ID as a GET parameter:
https://api.hubapi.com/crm/v3/imports/\
However, I’m unsure when exactly I should call this endpoint, since the completion time depends on the size and complexity of the imported data. Is there a way to receive a webhook notification once the import is complete?
Hi @rakesh1003-dax
Thank you for reaching out to the Community!
I’d like to invite some community members who are subject matter experts to join this conversation.
@BrandonWoodruff @GRajput @Mike_Eastwood - Would you be able to share any insights on this? Your expertise would be greatly appreciated.
Best,
Victor
Hey @rakesh1003-dax !
Great news!. You are not missing an option as there is not an import-based webhook subscription listed in the Webhook API documentation. The endpoint you listed is correct and the documented way to check an import status.
I’m adding my colleague @Jaycee_Lewis to this thread for more insights!
Best,
Victor
Hey, @rakesh1003-dax
For your usecase, you may want to work with your dev to create a simple script and middleware to poll that endpoint on a set interval. That is likely the most reliable way to programmatically identify when imports have finsihed processing.
Best,
Jaycee
Thanks @Jaycee_Lewis , Thanks for the providing this solution. We are already working on this solution but i am looking if there is an alternate option in hubspot to send a webhook on import completion.
Thanks,
RJ
Hi @Victor_Becerra ,
Thank you for this.
i was trying this, which option i should choose to check if the import done or not.
Would you please help me to configure this.
Thanks,
RJ