Error with sending email API call

Hi everyone,

I use Make/integromat for automation. To send invoices by email I was using the Custom invoice action which has been deprecated (GET /api/v1/invoices/{id}/{action} )

I think it’s best to replace this call by
“Sends an email for an entity” → Post : /api/v1/emails

I configure my call as requested but I get a 422 error : The given data was invalid. “template": The template field is required.

My value is “invoice”. Is a template Id required? If so, where can I get it?

Thanks a lot and have a good day

Hi,

You can use the network tab in the browser console to see sample API requests made by the web app.

1 Like

Thanks, I finally found what I wanted, thanks to the browser console, the template name: Something like email_template_invoice.

1 Like