HIya - I’m using the events endpoint to pull all of a profiles events over the most recent API (v2023-06-15).
This is then endpoint I'm using: https://developers.klaviyo.com/en/reference/get_events
This works and I can retrieve events for the profile, however it looks there is not event ‘name’ in the data that's returned.
When looking at a contact’s profile within Klaviyo, it lists events by the event name, i.e.’Opened email’, ‘Started Checkout’, ‘Fulfilled Order’ etc. However when pulling the same events over the API, they’ve given an Event ID. There is no event name in the data that comes back over the API.
How can I use the events endpoint and get the event ‘name’?
alternatively, how can I get the event name if I have the event ID?
Many thanks
Stef
Solved
Getting Event 'name' over API
Best answer by stem
you get metric_id from get_events and the name from the get_metrics endpoint
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.