← Back to API Reference

POST /emails

Send Email

Send a single transactional email.

Request (cURL)

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."
}'

Response Example

{
  "id": "em_123"
}

Request Body Example

{
  "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."
}