Skip to main content
We would like to inspect event history for a user via the API. For some events, we would like to look at the campaign or the list associated with the event. The event only stores the IDs associated with those objects, and it appears that the API only allows us to get the entire collection of campaigns or lists and we are unable to request information for a specific ID. Is there a more efficient way to get information about a specific campaign or list rather than pulling back the entire collection ourselves and searching through it? Is it possible to build something similar to the Event History tab from the User Profile screen in Iterable via the API that is reasonably efficient? Thanks for any ideas.
Hey Wally! You may be able to pull the campaign ID from a send event recorded in a user's event history. This data is accessed via the https://api.iterable.com/api/docs#events_User_events endpoint for a given user. You would need to be able to access and pass that campaign ID/list ID into another API call for the respective campaign or list.
Campaign metrics: https://api.iterable.com/api/docs#campaigns_metrics
Campaign Metadata: https://api.iterable.com/api/docs#campaigns_campaigns
Users in List: https://api.iterable.com/api/docs#lists_getLists_0

Those calls will return some of the data contained in the Event History, but some areas will differ.

Reply