I’m having an issue making a POST request to the Mailerlite API to create a campaign that includes HTML.
I’m using the NEW version of Mailerlite. What I find strange is that my call is successful if I don’t include “email content”, but the moment I include plain html it fails. I’ve followed Mailerlite’s direction to remove line breaks, use single quotes, and to use a tool to escape the HTML.
When I submit the exact same body content in a call via Postman (same headers, etc.) it is successful.
Any ideas why the Make http module would fail while Postman is fine?
Hi. In the next time use a tool like Jsonlint.com to check the json code and prevent errors like in the field “from_name”. And as Francisco says, be sure about the html code sent in the field “content”. If there is some kind of the quotes, you need to turn it into single quotes.