We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

400 error trying to add a new contact

Occasional Participant

400 error trying to add a new contact

getting a 400 error when trying to add a contact.

Here's then XML


<?xml version="1.0" encoding="UTF-8"?>

<entry xmlns="http://www.w3.org/2005/Atom">



    <author><name>CTCT Samples</name></author>


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

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

        <Contact xmlns="http://ws.constantcontact.com/ns/1.0/">


            <FirstName>My Name</FirstName>



            <CompanyName>Site-Seeker, Inc.</CompanyName>
































                <ContactList id="http://api.constantcontact.com/ws/customers/blaira/lists/2"/>







Posting this to my Contact Collection worked successfully.  This usually means that the contact list ID that you have (ID 2) is not a valid list ID.  You would want to get a list of valid lists that you have in your account by doing a GET http request on your List collection URI.  This will give a list of the lists in your account, and they will have the List ID that you will need to specify when adding a contact.


Benjamin Soder
NOC Analyst
Constant Contact
Developer Portal

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

Visit Page