Hi,
thank you!
Hello user463795 ,
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
Within our API, there is not a way to validate the email address format for contacts as far as displaying contact import errors within the response body of the bulk import endpoint, but you could create something like this at the application level within your integration.
Essentially, you'd want to code your program to check the data in the JSON request body (or CSV file, depending on which bulk endpoint method you are using) prior to sending it through the API, and have your program parse that data and generate a report or alert for you showing which entries for that field do not meet the correct convention for an email address.
If you're not sure of the best method to use, I'd recommend searching online using the string "validate email address format" and the name of the programming language you are using as well as the input type you have chosen. I'm sure there's a few different ways to do it.
*possible search examples:
validate email address format java csv
validate email address format php json
While our expertise is with our API itself as opposed to its implementation within any particular programming language, we are happy to answer any questions pertaining to Constant Contact’s API endpoints, functionality, and documentation.
Please have a look and let us know if you have any other questions!
Announcements
Join our list to be notified of new features and updates to our V3 API.
Sign Up