Hello,
I want to sync all email sent and openned events to my system e.g. via webhooks.
How do I achieve that?
Thanks,
Best answer by saulblum
View originalHello,
I want to sync all email sent and openned events to my system e.g. via webhooks.
How do I achieve that?
Thanks,
Best answer by saulblum
View originalIf you have purchased Klaviyo’s CDP, there is a webhooks feature that will hit an external webhook on events such as Opened Email and Clicked Email:
https://help.klaviyo.com/hc/en-us/articles/17760478970907
Otherwise, you can’t set up flows to be triggered on these events, so you would need to use the Get Events API (filtering on the IDs of the metrics you want) to periodically query Klaviyo for the events you care about, fetch their properties, and send them elsewhere.
Thank you
I have not purchased CDP yet, then I don’t know what webhook topics it has. I just want to make sure that I can get all email sent events. Does it has the topic like email.send?
Do we have APIs to handle CDP flows? or I must create the flow on the console?
I would use the Get Events API call linked to above. Go to the metric in question, e.g. Opened Email, in the UI and get the metric’s six-character ID from the URL, e.g. https://www.klaviyo.com/metric/QhyxVR/opened-email
Then use that ID in a filter in the Get Events call, along with a time range. It won’t be real-time, but if you run the process often enough with small enough windows, it will be close to real-time.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.