Apr 7, 2021 12:08 PM - edited Apr 7, 2021 12:10 PM
Could you please help to point to the right endpoint( new version(V3) of the HubSpot API) to list all contacts and another endpoint to get only changes(CDC) based on the timestamp?
Apr 7, 2021 4:46 PM
I think you will use the list endpoint for part 1 and maybe use the search api for the second. Would also consider webhooks for the second part as well
@RMones , what do you think?
Apr 8, 2021 2:44 PM
Thanks for the quick response. I am almost there.
For ex: I am using an endpoint https://api.hubapi.com/crm/v3/objects/companies?hapikey=xxxxxxxxxxx to return the records(max 100) and via paging retrieving all the records.
Also our requirement is to have some scheduled script run in certain intervals to retrieve recently added/changed records by passing some timestamp column. From a new version(v3) of the API endpoints, I don't find any relevant parameter to pass to get changed/added records after a certain point in time.
Could you please help to handle this scenario?
Apr 8, 2021 3:22 PM
instead of pulling information. using the webhooks you can avoid creating that scritp and focus on updating your database with the data hs sends you every time a change happends. no schedule needed and your data will be up to date all the time
Apr 8, 2021 8:32 PM