Volamail

Send

The send endpoint is the main way to send emails via the Rest API. To use it you need to pass in an API token in the Authorization header and a JSON body with the details of the email to send.

Example usage

curl --request POST \
--url https://api.volamail.com/send \
--header 'Authorization: Bearer vl_my-volamail-token' \
--header 'Content-Type: application/json' \
--data '{
  "template": "my-welcome-email",
  "from": "noreply@company.com",
  "to": "john.doe@example.com",
  "data": {
    "user_name": "Mauro"
  }
}'

Reference

Headers

Authorization
Required
Bearer <token>

JSON body

template
Required
string

The ID of the template to send.

from
Required
string (email)

The email address to send the email from. This needs to be from a verified domain.

to
Required
string (email)

The email address to send the email to.

dataRecord<string, string>

The record of variables to pass to the template.

On this page