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.

400 Error

Occasional Participant

400 Error

 I have been testing my API calls with a test account and everything seemed to be working well.

I switched over to a "live" account and I getting a 400 error when I pass:

 - <entry xmlns="">

  <title type="text" />


  <author />


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

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

- <Contact xmlns="">


  <FirstName />

  <MiddleName />

  <LastName />

  <HomePhone />

  <Addr1 />

  <Addr2 />

  <Addr3 />

  <City />

  <StateCode />

  <StateName />

  <PostalCode />

  <SubPostalCode />

  <CountryCode />

  <CompanyName />

  <JobTitle />

  <WorkPhone />



  <Note />

  <CustomField1 />

  <CustomField2 />

  <CustomField3 />

  <CustomField4 />

  <CustomField5 />

  <CustomField6 />

  <CustomField7 />

  <CustomField8 />

  <CustomField9 />

  <CustomField10 />

  <CustomField11 />

  <CustomField12 />

  <CustomField13 />

  <CustomField14 />

  <CustomField15 />

- <ContactLists>

  <ContactList id="" />





Can someone tell me what is wrong with this data that is attempting to add a new contact?


400 error when posting


I tried taking your XML and posting it to my own account, changing the list to my own list, and it successfully created the contact.

What URI are you posting this XML to? Also, are you sure you have a list 26? Please keep in mind that the list ID is not the same as the Sort order number from the User Interface when looking at a list.

If you have any questions please let me know.


Benjamin Soder
NOC Analyst
Constant Contact
Occasional Participant

Ben S.

 Thanks for your quick response,

Yes, I do appear to have list id = 26.

Occasional Participant

Sort id is not list id?

 Oops. I just realized what you said.  How would I know what the list id is by looking at the list?

Occasional Participant


Thanks for pointing me in the right direction.  I see from the address bar that the list id is 94.   That is a bit confusing.


list ID


I apologize for the confusion, usually the best way to find the list ID would be to do an API GET call on the lists URI, and you will find your list there.


Benjamin Soder
NOC Analyst
Constant Contact
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