template language to show list ID

Hi, i need to update the custom fields in Subscribers. but i don't know how to get the list ID.

is there any template variable like "email" which show the list ID?

if not, how can i know which list is send from if i only have email address


Stephen, 3 years ago

Hi there,

Thanks for your question and no problem at all, if you're looking to return all lists (and list IDs) within a client account, then you're able to use the subscriber lists API call, as per below:

https://www.campaignmonitor.com/api/cli … iber_lists

In addition, if you would like to locate all lists a specific subscriber is contained within, then you're able to use the lists for email API call below:

https://www.campaignmonitor.com/api/cli … _for_email

Thanks a lot and hope that helps!

adffeadsf, 3 years ago

Thanks stephen,

Will the same email be in few different list ? how do i know which list the email sent from


Stephen, 3 years ago

Hi there,

Thanks for following up here and no problem, if you need to identify which individuals a campaign was sent to, specifically, then you're able to use the following API call:

https://www.campaignmonitor.com/api/cam … recipients

This will also display the List ID associated with each subscriber as well, which will allow you to track down which list they were contained within when you sent your campaign.

Hope that helps!

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free