API
Docs and API's for Weasy.io
Send Mail
Allows send emails using system custom template.Accepts POST
All requests to the API must be authenticated with an API key on the HTTP Authorization header.
POST
Send an email.Attachments not supported.
Request example
~ curl -i -X POST \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '{"to":"info@weasy.io", "subject":"teste", "body":"this is a body message"}' \
https://api.weasy.io/v1/sendmail
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
-d '{"to":"info@weasy.io", "subject":"teste", "body":"this is a body message"}' \
https://api.weasy.io/v1/sendmail
Body response example [ HTTP CODE: 200 ]
Body attributes
A json payload containing the following attributes.| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| to | string | required | define email address destination this field can be comma separated for multiple email addresses |
| subject | string | required | define the subject of the email |
| body | string | required | define the body message of the email. Supports HTML. |