CMS Development

tonygoodchild
Participante

Reading email history of contacts

resolver

I'm trying to find a suitable API to read the status of emails sent to a contact by a sales person.

 

This isn't for marketing email sent from marketing hub, but a single email sent from a salesperson through the Contact page in Hubspot.

I want to be able to read the history of emails and see how may times they have been clicked and read.

 

Is there a suitable way to accomplish this?

0 Me gusta
1 Soluciones aceptada
dennisedson
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Reading email history of contacts

resolver

@tonygoodchild 

You will have to work with a couple different endpoints to get these data.

1:  for the email engagement, you will need to query the engagements endpoints

2:  for clicks, there is not a good solution (that I am aware of).  You will have to look at the Contact Object and request values for this properties:

Recent sales email clicked date (Sales Hub Professional and Enterprise only)

Recent sales email open date

Recent sales email replied date

You could set up webhooks to subscribe to these changes and keep a count in your app that way...

@lynton , @tominal any thoughts?

Ver la solución en mensaje original publicado

4 Respuestas 4
tonygoodchild
Participante

Reading email history of contacts

resolver

I've hit a bit of a roadblock, I can get the latest email using the engagements API as mentioned, and can see various data about it like:

 

trackerKey
messageId
threadId
uid
 
I've tried pushing these by the /email/public/v1/events/ endpoint but don't get anything back.Is there a way to specifically query the email and retrieve the counts of Read, Opens and Clicks?
0 Me gusta
dennisedson
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Reading email history of contacts

resolver

@tonygoodchild ,

Have you explored this endpoint?

0 Me gusta
dennisedson
Solución
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Reading email history of contacts

resolver

@tonygoodchild 

You will have to work with a couple different endpoints to get these data.

1:  for the email engagement, you will need to query the engagements endpoints

2:  for clicks, there is not a good solution (that I am aware of).  You will have to look at the Contact Object and request values for this properties:

Recent sales email clicked date (Sales Hub Professional and Enterprise only)

Recent sales email open date

Recent sales email replied date

You could set up webhooks to subscribe to these changes and keep a count in your app that way...

@lynton , @tominal any thoughts?

tonygoodchild
Participante

Reading email history of contacts

resolver

Awesome, thanks!

0 Me gusta