Send email via API

Guys, I’m trying to send email through an API

this is the URL

http://portalturis.com.br:8080/configTest/api/mail/ai-agent/send

{
“remetente”: “email@sender.com”,
“nomeRemetente”: “name sender”,
“destinatarios”:[“email@desti.com”],
“assunto”: “test mail”,
“corpo”:“test mail in body”
}

I’m in doubt because I never consume an API

thanks

Hi.
You need to configure this using the API Action step.
Put the URL in URL input.
Set the body in the Input Data table in key-value pair in each row.

There might be some headers or basic authorization involved. Probably check the email provider’s documentation for that.

If you are unable to get it to work on Wappler directly, you can try using Postman. Postman allows you to test APIs with numerous configurations. Once you get it running on Postman, you can almost always replicate the same configuration in API Action.

1 Like

Thank you! :handshake: