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
Reference
Headers
Authorization
RequiredBearer <token>
JSON body
template
Requiredstring
The ID of the template to send.
from
Requiredstring (email)
The email address to send the email from. This needs to be from a verified domain.
to
Requiredstring (email)
The email address to send the email to.
data
Record<string, string>
The record of variables to pass to the template.