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": {}
    }
  ],
  "replyTo": {
    "email": "reply@example.com",
    "name": "Reply Name"
  },
  "subject": "Your Subject Here",
  "template": "template_f3lJvTEhSjKGVb5Lwc5SWS"
}'
[
  {
    "to": "jsmith@example.com",
    "submittedAt": 123,
    "errorCode": 123,
    "message": "<string>"
  }
]
🎯 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 length: 1
subject
string
required

Override template subject

Example:

"Your Subject Here"

template
string
required

Template identifier

Example:

"template_f3lJvTEhSjKGVb5Lwc5SWS"

replyTo
object

Response

✅ Email sent successfully

to
string<email>

Recipient email address

submittedAt
integer

Unix timestamp of submission

errorCode
integer

Error code (0 = success)

message
string

Status message

I