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.
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
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
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