Hi.
We use Klavyio to send transactional emails to our customers who send inquiries/book vendors on our marketplace. Using Klavyio API we can get information about all emails (metrics) that we have sent to the customer. However, we cannot associate specific emails with specific inquiries/bookings. We want to understand if the customer has opened specific email and when he did that. Does anybody now to connect specific activities (email delivered, email opened) with a specific event?
Thank you in advance!
Solved
How to associate specific activities with specific events/metrics we create?

Best answer by saulblum
Is there a metric for inquiries and booking? If so, are you using the Get Events API call to get these events? If you are, see if you see an $attribution block for each event. If so, it will have properties such as an attributed event/metric (e.g. Opened Email) and the ID of the message and flow, if relevant.
"$attribution": {
"$attributed_event_id": "46neDwX2xDw",
"$send_ts": 1678235253.0,
"$message": "H3D94d",
"$flow": "HzPHxA"
}
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.