The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Error 400: Bad Request

New Member

Error 400: Bad Request

Hi, i am receiving Error 400 from the server while posting a new contact (The remote server returned an error: (400) Bad Request.)

The XML is:

<entry xmlns="">

  <title type="text" />


  <author />


  <summary type="text">Contact</summary>

<content type="application/vnd.ctct+xml">

 <Contact xmlns="">


  <FirstName />

  <MiddleName />


  <HomePhone />

  <Addr1 />

  <Addr2 />

  <Addr3 />

  <City />

  <StateCode />

  <StateName />

  <PostalCode />

  <SubPostalCode />

  <CountryCode />

  <CompanyName />

  <JobTitle />

  <WorkPhone />



  <Note />

  <CustomField1>District of Delaware</CustomField1>



  <CustomField4 />

  <CustomField5>09-12019 (CSS)</CustomField5>

  <CustomField6 />





  <CustomField11 />

  <CustomField12 />

  <CustomField13 />

  <CustomField14 />

  <CustomField15 />


  <ContactList id=" Interest" />





Also, i would like to send a batch of more than one contacts (either new or updates) instead of sending them one by one. Is this possible?


Thank you


Posting a Contact


I have looked over your XML and I believe you are getting the 400 error because of the way you have the List node. The list URI has to lead to the lists actual LIST ID, not the name of the list.

Usually, your General Interest list is list 1, so instead of what you have, the list would be

If you have any questions please let me know.


Benjamin Soder
NOC Analyst
Constant Contact

Re: Posting a Contact

How do you know what the List ID is?  Is it the same as Order?   (i.e. if I change the order of the lists, am I changing the list's ID too?)



Re: Posting a Contact



You can get the list-id by doing a get to your list collections.  You can find out more about this here.


Please let me know if this helps.

Ryan Davis
Quality Engineer

Re: Posting a Contact

Thank you for your prompt answer!


OK I used RestClient to get the information so it was relatively painless.  :-)


Thanks for the help!  Got the correct ID now.  But if you just display the ID on the website, that would probably be a handy thing to be able to see.



Re: Posting a Contact

To get the id of a list in the admin you can just mouse over the list name link and look at the url in the browser status bar.

New Member

Re: 400 error

Thank you, it worked.

Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More