Skip to main content
POST
/
api
/
v1
/
transactional
/
send
{
  "success": true,
  "jobId": "job_xyz789",
  "to": "[email protected]",
  "transactional": {
    "id": "txn_abc123",
    "slug": "welcome",
    "name": "Welcome Email"
  }
}
Send a transactional email. You can either use a saved template (by slug) or send custom content directly.

Request Body

to
string
required
Recipient email address

Option 1: Send via template

slug
string
Template slug (use this OR subject+body)

Option 2: Send direct content

subject
string
Email subject (required if no slug)
body
string
Email HTML body (required if no slug)
preview
string
Preview text

Common fields

variables
object
Template variables for personalization

Example: Send via template

curl -X POST "https://api.sequenzy.com/api/v1/transactional/send" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "[email protected]",
    "slug": "welcome",
    "variables": {
      "NAME": "John",
      "LOGIN_URL": "https://app.sequenzy.com/login"
    }
  }'

Example: Send direct content

curl -X POST "https://api.sequenzy.com/api/v1/transactional/send" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "[email protected]",
    "subject": "Your order is confirmed",
    "body": "<h1>Thank you, {{NAME}}!</h1><p>Order #{{ORDER_ID}} confirmed.</p>",
    "variables": {
      "NAME": "John",
      "ORDER_ID": "12345"
    }
  }'

Responses

{
  "success": true,
  "jobId": "job_xyz789",
  "to": "[email protected]",
  "transactional": {
    "id": "txn_abc123",
    "slug": "welcome",
    "name": "Welcome Email"
  }
}
Emails are queued for background processing. The jobId can be used to track delivery status. System variables like NAME, FIRST_NAME, LAST_NAME, and EMAIL are automatically populated from subscriber data if available.