Post error (using an email template)

Please help me with this.

I am getting a 400 error from an email template

APP iD: AE2DDCEC-B9FE-840C-FF14-F909F857AE00

Hello @Ramon_Reyes

Have you added Custom SMTP?
Also, If you open the Network tab in DevTools, you will see a detailed error on your request.


Hi – the SMTP works.

What error text do you see when you send an email?

The console shows a 400 bad request. See the image I attached.

What error does the request return? This can be seen on the Network tab

400 bad request

Open Response tab here please.
Or I need exact steps on how I can reproduce the problem.


The email template generated this curl.

curl -X POST -H “Content-type: application/json” -d ‘{
“template-name”: “PDF_template”,
“addresses”: ,
“cc-addresses”: ,
“bcc-addresses”: ,
“criteria”: “email is not null and email != ‘’”,
“template-values”: {},
“attachment”: undefined
}’ ‘

My codeless logic is this
Screen Shot 2022-07-29 at 10.26.38 AM

Please see the question here.

I don’t understand the question. I feel like I have explained the problem clearly.

Hi @Ramon_Reyes

400 is just an HTTP status.
In the response section, we can see the response from the server, where should be more details.
That’s why Inna asked you to check the section.

I hope this is the info you guys need.

Hi Guys. Any progress on this?

Hi, @Ramon_Reyes

According to the response, the issue is related to an undefined value in the attachment. You need to rebuild the logic. When sending a request, look at the response tab, it will help you identify the problem next time.


I think the directory path of the attachment is properly formed. Why can’t the api find it?

Hi, @Ramon_Reyes

Try to add the variable with the file to the “create list with” block:
If you still have errors please privede us with the new request and make sure to check the response tab for errors.


That did it. Thank you.