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.

create campaign


create campaign

When testing using the API to create campaigns (using .net wrapper) I'm running into a problem with validation.


given this json request:

"email_content":"<html><body><h1>this is the email content<\/h1><\/body><\/html>",
"from_name":"IHDS School",
"address_line_1":"7040 Avenida Encinas",
"forward_email_link_text":"Forward this email",
"organization_name":"International Human Design School",
"subscribe_link_text":"Subscribe to Our Newsletter!"
"subject":"my test campaign",
"text_content":"this is the content"

 yeilds the following error 

http.status.bad_request:Please enter a valid email address.

 The only email address present is the 'from_email' property and it is a verified address being used for all other campaigns (that we currently create through the UI)


any idea on why this is failing?






In this case the issue is that your request JSON and campaign object has no value set for the reply_to_email field. With the .NET wrapper you can correct this with the following code:

campaignObject.ReplyToEmail = "email@example.com";

 As long as the reply-to email is set before you attempt to create the campaign, the API call should be successful. This is happening because the reply-to email field is a required field.


If you're still having any difficulty after adding this info to the campaign, please let me know!



Elijah G.
API Support Engineer
Developer Portal

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

Visit Page