Rest API: Is there an API endpoint to get all Leads who are members of a campaign?

Highlighted
Anonymous
Not applicable

Rest API: Is there an API endpoint to get all Leads who are members of a campaign?

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.

Thanks,

4 REPLIES 4
Highlighted
Level 10 - Community Moderator

Re: Rest API:  Is there an API endpoint to get all Leads who are members of a 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.

Highlighted
Anonymous
Not applicable

Re: Rest API:  Is there an API endpoint to get all Leads who are members of a campaign?

Hi Sanford,

To use Smart List extract endpoint I need Smart List Id.  How can I get it from Campaign using API?

Regards,

Highlighted
Level 10 - Community Moderator

Re: Rest API:  Is there an API endpoint to get all Leads who are members of a campaign?

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!

Highlighted
Anonymous
Not applicable

Re: Rest API:  Is there an API endpoint to get all Leads who are members of a campaign?

Hi Sanford,

To use Smart List extract endpoint I need Smart List Id.  How can I get it from Campaign using API?

Regards,