Skip to main content
POST
Send a transactional e-mail

Authorizations

Authorization
string
header
required

An API token. The "read" ability: GET routes only. "read + write": every route.

Headers

Idempotency-Key
string

Replay a write safely: the same key gives back the first answer for 24 hours (header Idempotent-Replay: true).

Maximum string length: 255

Body

application/json
template
string | null

The name of one of the team's transactional templates.

html
string | null

The HTML body, when no template is given.

subject
string | null

Replaces the template's subject.

to
string<email>[]
cc
string<email>[]
bcc
string<email>[]
variables
object

They fill the template: {{ order.number }}, {% for %} loops…

locale
string | null

Which language version of the template to send (fr, pt-BR…). Without a value, the base version.

from_email
string<email> | null
from_name
string | null
reply_to
string<email> | null
mailer
string | null

The name of a configured provider, to force that one.

attachments
object[]
Maximum array length: 10

Response

E-mail sent.

data
object