APIs & Integrations

lgomez
Participant

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

SOLVE

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:

Screen Shot 2021-02-02 at 7.05.28 PM.png

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?

1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

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

SOLVE

Hey @lgomez 

Check out the Engagements Endpoints

Maybe that is what you are looking for!

View solution in original post

0 Upvotes
2 Replies 2
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

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

SOLVE

Hey @lgomez 

Check out the Engagements Endpoints

Maybe that is what you are looking for!

0 Upvotes
lgomez
Participant

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

SOLVE

Yes, it is. Thank you!