POST
/emails
Send Email
Send a single transactional email.
Send a single transactional email.
curl -X POST "http://localhost:8080/v1/emails" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"from": "no-reply@mail.example.com",
"to": [
"customer@example.com"
],
"subject": "Your order is processing",
"html": "<p>Thanks for your order.</p>",
"text": "Thanks for your order."
}'
{
"id": "em_123"
}
{
"from": "no-reply@mail.example.com",
"to": [
"customer@example.com"
],
"subject": "Your order is processing",
"html": "<p>Thanks for your order.</p>",
"text": "Thanks for your order."
}