With the new APIs I’m curious what’s the recommended approach to get all event for a specific profile. Previously it would be done through https://developers.klaviyo.com/en/v1-2/reference/profile-metrics-timeline but it's unclear how to do it with the new API.
Right now, the new API does not have a way to pull in all of a profile’s metrics the same way we were able to with the old API. Our engineer teams are currently working on building out this feature but it is not available yet. Here are some alternatives in the meantime:
Let me know how that goes. As for if you want to bulk update profiles, we're working on adding this to the new APIs. Since the older APIs will still be active for at least another year, please feel free to continue using that service until we've had the chance to add the functionality to the new APIs.
Right now, the new API does not have a way to pull in all of a profile’s metrics the same way we were able to with the old API. Our engineer teams are currently working on building out this feature but it is not available yet. Here are some alternatives in the meantime:
@alex.hong Any updates on this since 3 months ago? I’m in the same boat where I need to show events for the last X days on a separate screen through an integration. I’m currently using the v1/v2 “timeline” endpoint and it works great, but of course it’s going to be deprecated soon.
I can get all events for a specific profile using getEvents and a filter, but it doesn’t include the metric name. If I “include” the metric, it just gives me the metric ID, not the name. The only way I can see to do it at the moment is to loop through all of the events and make a separate call for each one to get the metric name, but that feels really inefficient and potentially dangerous with rate limits, especially if there are 50-100 metrics to display.
Am I missing something? Or do I truly need to just wait for this feature to roll out? I’m just a bit worried that it will come late in the year and v1/v2 will be deprecated shortly after, giving me a tiny window to make the changes.
I see that you posted this question in another thread that I just responded to, so for the sake of organization and visibility I will just link to that post here: