APIs & Integrations

MThekkadayil
Participant

Sales email thread relation

SOLVE

Hi, 

 

Currently i am pulling emails from the below api -> 
https://api.hubapi.com/crm/v3/objects/emails

 

However, this api returns all the emails, even the one belonging to to a thread, as independent emails with its own unique id. 

 

How will i relate the emails belonging to a thread to each other. Clearly hubspot is being able to do that in the UI, is there any way this information is exposed by the API?

 

Right now i have to group emails by subject to manually thread them. Which is not reliable. 

 

Also any reason why emails logged manually in hubspot does not have subject property filled. 

 

Thanks,

Mathew

1 Accepted solution
Humashankar
Solution
Key Advisor

Sales email thread relation

SOLVE

Hi @MThekkadayil 

Since HubSpot's API doesn't directly provide access to the In-Reply-To and Message-ID headers.

We can explore options like email forwarding or integrating with email services to access these headers.

If these approaches don't produce the wanted results, we may need to rely on third-party tools or services specializing in email parsing and threading, such as Parseur, Mailparser, and others.

 

Best Regards

Humashankar VJ
HubSpot Enthusiast and Key Advisor | Engineering Manager

View solution in original post

0 Upvotes
3 Replies 3
Humashankar
Key Advisor

Sales email thread relation

SOLVE

Hi @MThekkadayil 

The HubSpot API does not provide a straightforward way to connect emails into a conversation thread.

 

Instead, emails are returned as separate objects with unique IDs, and grouping by subject is the most straightforward approach, although it's not always reliable.

 

Consider other options like:

  • To uncover potential email relationships, delve into the metadata and associations within the API response, as they may contain hidden data that can help link emails together.
  • In addition, consider leveraging the Message-ID and In-Reply-To headers from email headers to accurately track threads, although it's important to note that this information is not directly accessible via the HubSpot API, requiring alternative means to obtain it

 

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Humashankar VJ
HubSpot Enthusiast and Key Advisor | Engineering Manager
0 Upvotes
MThekkadayil
Participant

Sales email thread relation

SOLVE

Hi Humashankar,

 

Thanks for the reply. 

 

Any idea what is the alternative way i can get the In-reply-to header or messge-id based on the information we get from hubspot?

 

Regards
Mathew 

 

Humashankar
Solution
Key Advisor

Sales email thread relation

SOLVE

Hi @MThekkadayil 

Since HubSpot's API doesn't directly provide access to the In-Reply-To and Message-ID headers.

We can explore options like email forwarding or integrating with email services to access these headers.

If these approaches don't produce the wanted results, we may need to rely on third-party tools or services specializing in email parsing and threading, such as Parseur, Mailparser, and others.

 

Best Regards

Humashankar VJ
HubSpot Enthusiast and Key Advisor | Engineering Manager
0 Upvotes