We have a request for a new parameter to be added on the Engagements API resource that allows us to choose the ‘TYPE’ of engagement that we want to pull from the API, e.g. Task, Meeting, Email etc.
We currently are paginating all data, which is costly on the HubSpot server, and in the client’s time. In one particular case the JSON file exceeds 3MB and the wait time is around 1 minute, because the user has hundreds of emails (type: EMAIL), and we are just trying to grab the tasks. We have to download all engagements and then filter our end which is very costly and slow.
A simple parameter to specify what type of engagement would be very helpful indeed and would make our integration with HubSpot killer.
I can totally see the use case here; I’d be happy to pass it along internally. If you have the inclination, I’d recommend visiting the Ideas Forum on the HubSpot Community. There, you can create a post including your use case that product and other customers can see.
Hey @Derek_Gervais , any update on this request. We are also facing a similar problem. Current recent engagement API is giving us all engagement types (we only are concerned with MEETING type), therefore we also have to scroll / paginate through every response. The main problem with this approach is - for our case there are lot of engagements (> 10,000), therefore when we try to retrieve records where offset = 10000 and count = 50, the API breaks stating that - offset + count <= 10000 Therefore, we cannot retrive any more records after this. It's most probably an ElasticSearch heap max size issue from your end. So, can you please provide us an update on this, this thing is blocking us from migrating to Hubspot Meeting.
Thanks—yeah I tried to submit there too but the form didn’t work, it just refreshed when I clicked submit and didn’t submit anything. Please pass it along, I think it shouldn’t be too much trouble to create this. The best way might be to just offer another resource, much like you have with /recent/modified, but you could offer /recent/modified/type/task or /type/email etc.