APIs & Integrations

sridharan
Member

Regarding Retrieve Emails from 6 to 10 Months Ago Using Engagements API

Hi everyone,

I'm working on a Salesforce integration using the HubSpot Engagements API to migrate emails. I’m able to retrieve email engagements using the /engagements/v1/engagements/paged endpoint. However, I now want to:

  1. Retrieve only emails created between 6 to 10 months ago.

Since the API doesn't seem to support date filtering via query parameters, I'm wondering:

  • Is there a way to filter by timestamp (e.g., createdAfter, createdBefore) at the API level?

  • Or do I have to paginate through all results and filter by timestamp manually in Apex?

Any official guidance or best practices would be appreciated.

Thanks!

0 Upvotes
2 Replies 2
nickdeckerdevs1
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Regarding Retrieve Emails from 6 to 10 Months Ago Using Engagements API

Hey! I need a bit more context to what you are doing with these engagements -- once you have these emails/engagements, are you looking to assign them to send them to Salesforce and attach them to specific records?

What is the current way you are planning on doing this? How are you matching them up with the salesforce records you need to match them to?

Are you triggering these from SF to reach out and get engagements for a specific record? What is the whole concept you are going for?

DianaGomez
Community Manager
Community Manager

Regarding Retrieve Emails from 6 to 10 Months Ago Using Engagements API

Hi @sridharan 

 

Thanks for reaching out to the Community!

 

I would like to invite some members of our community who may offer valuable insights.— hey @HMir, @SteveHTM, @nickdeckerdevs1 - Could you share your advice with @sridharan?

 

Thanks for taking a look!

Diana


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


¿Sabías que la Comunidad está disponible en Español?
¡Participa hoy en conversaciones en el idioma de tu preferencia,cambiando el idioma en tus configuarciones!