Hey everyone — I’m trying to reliably retrieve the most recent engagement activity (emails and notes) for either a company or a contact using the HubSpot API.
I’ve been using the Engagements v1 endpoint:
/engagements/v1/engagements/associated/company/{companyId}/paged
…but it returns results sorted from oldest to newest, and I haven’t found a way to get the most recent 10 engagements or filter to just the last 30 days.
My questions:
Is there a way to sort by newest or limit by date when pulling engagements for a company/contact?
If not, is there a better approach/API to use to retrieve the most recent emails/notes, including their content (e.g. metadata.body)?
We’re doing this via Zapier webhook calls, so we need something efficient and lightweight.
Any advice or examples would be hugely appreciated!