Skip to main content
POST
/
send
/
template
Send email using template
curl --request POST \
  --url https://api.sendx.io/api/v1/rest/send/template \
  --header 'Content-Type: application/json' \
  --header 'X-Team-ApiKey: <api-key>' \
  --data '
{
  "from": {
    "email": "from@example.com",
    "name": "From Name"
  },
  "to": [
    {
      "email": "to@example.com",
      "name": "To Name",
      "customFields": {}
    }
  ],
  "subject": "Your Subject Here",
  "template": "template_f3lJvTEhSjKGVb5Lwc5SWS",
  "replyTo": {
    "email": "reply@example.com",
    "name": "Reply Name"
  }
}
'
{
  "status": "success",
  "message": "Email queued for delivery"
}
🎯 Key Features:
  • Use saved email templates
  • Variable substitution
  • Multiple recipients support
  • Tracking and analytics

Authorizations

X-Team-ApiKey
string
header
required

Team API key for authentication. Find your API key in SendX Settings → Team API Key.

Example:

X-Team-ApiKey: your_team_api_key_here

Body

application/json
from
object
required
to
object[]
required
Minimum array length: 1
subject
string
required

Override template subject

Example:

"Your Subject Here"

template
string
required

Template identifier

Example:

"template_f3lJvTEhSjKGVb5Lwc5SWS"

replyTo
object

Response

✅ Email queued for delivery

Success response when transactional email is queued for delivery (202 Accepted)

status
enum<string>
required
Available options:
success
Example:

"success"

message
string
required
Example:

"Email queued for delivery"