APIs & Integrations

ricky23
Contributor

How to get the Sender of an email from the Email Events API?

I am trying to get the list of emails sent by a user via the Email Events API. The Email Events API shows the recipient but it doesn't show the sender. The only Information of the sender is from the sentBy property that gives the ID of the sender. But, how do you get the email address of the sender from the ID?

Any help on this matter would be greatly appreciated.

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

How to get the Sender of an email from the Email Events API?

Hi @ricky23,

The sentBy field is the eventId which uniquely identifies the email message's SENT event. You'd need to request the details for that event specifically, and then examine the from field of the resulting event. The SENT event has the details for the email send: