I would like to be able to get all the leads that are members of a specific campaign.
I found endpoints to get leads from static list and program, but not from campaign.
You could use the Smart List extract endpoint, but if performance and simplicity are important, I wouldn't advise going there.
As far as I know, there's no granular /campaignMembers.json type of ep.
To use Smart List extract endpoint I need Smart List Id. How can I get it from Campaign using API?
I meant you can create a new Smart List (so you'd know its ID) that filters on Member of Campaign.
Don't think there's a more automated way at this time, unless I've missed something.
It's too bad, because getting the contents of the Campaign Members tab would seemingly be a more direct indexed lookup in the database and wouldn't take all the overhead of computing a Smart List... if we could do it!
Retrieving data ...