How to get conversation (emails) associated with contacts/companies/deals?

Hello everybody!

I am building an integration with HubSpot API and now I am wondering if there’s any way to get the conversations/emails that are associated with any given contact/company/deal via the HubSpot API. I’m talking about retrieving emails like the one below:

According the UI, it’s associated with a company, 2 contacts and one deal. Is there any API endpoint I could use to retrieve these emails/conversations?

Update:

I have been playing with the API and I found out I can get email associations with a request like this:

curl -XGET -H 'Authorization: Bearer {bearer_token}' 'https://api.hubapi.com/crm/v3/objects/deals/{deal_id}/associations/email'

When I run the request with the deal id from the image above, it returns association objects, each containing an id. However, I haven’t found an endpoint I can use to get emails by id or a to get a paginated list of emails. Any ideas?

Hey @lgomez

Check out the Engagements Endpoints

Maybe that is what you are looking for!

Yes, it is. Thank you!