Trying to trigger an Endpoint when a Marketing email is sent with information

Hello,
I am trying to figure how to send a webhook to an endpoint whenever a marketing email is sent/opened/clicked/etc.. I figured out how to do it through workflows but I can’t find out how to get the information of what was triggered, like what campaign, if it was a click or sent or opened, etc.
Anyone else hit this issue?

Hi @JMoubayed and welcome, we are delighted to have you here!
Great question, thanks for asking the HubSpot Community!
For information, here are some resources that might be of interest:
- Email Events API Overview
- Use webhooks with HubSpot workflows
- HubSpot API reference
Also, I’d love to put you in touch with our Top Experts: Hi @sylvain_tirreau, @Anton and @FaramarKolivand do you have suggestions to help @JMoubayed, please?
Have a wonderful day and thanks so much in advance for your help!
Bérangère

Hello!
Currently I have a workaround where the workflow triggers an endpoint, and I have some logic that will pull email events through the API but its inefficient for sure.

I don’t think workflow alone can post back full details about what campaign/email was triggered or whether it was a send/open/click inside the payload. Do you have Zapier?

Don’t have Zapier unfortunately. Do they provide a solution?

Zapier can react to marketing email events and can extract more info and send them via webhook.