What is the list ID of the "Do not mail list"

Highlighted
Occasional Contributor

What is the list ID of the "Do not mail list"

We would like to use the API to pull back the names on the "Do Not Mail" list so we can continuously update our records.   Does anyone know the list  ID so that we can do this?

 

thanks

 

 

3 REPLIES 3
Highlighted
CTCT Employee

Re: What is the list ID of the "Do not mail list"

Hey,

 

The list id is "do-not-mail" so you can do a get to ../lists/do-not-mail and it should return what you need.

 

Let me know if this helps.

Ryan Davis
Quality Engineer
Highlighted
Occasional Contributor

Re: What is the list ID of the "Do not mail list"

Hi Ryan,

 

The list seems to come back empty when we do the above.  We know that there are definitely names on the list.  Is there somewhere we can send the code and response we get.

 

Thanks

 

Highlighted
Moderator

Re: What is the list ID of the "Do not mail list"

If you need to send us personal information or code, please use the webservices@constantcontact.com email address.  Someone will look at your code and get back to you soon.

 

One thing to remember, in order to get the members of a list, you need to do a GET on the members collection. The URI for that collection is this format:

 

https://api.constantcontact.com/ws/customers/{username}/lists/do-not-mail/members

Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured