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": "[email protected]",
    "name": "From Name"
  },
  "to": [
    {
      "email": "[email protected]",
      "name": "To Name",
      "customFields": {}
    }
  ],
  "subject": "Your Subject Here",
  "template": "template_f3lJvTEhSjKGVb5Lwc5SWS",
  "replyTo": {
    "email": "[email protected]",
    "name": "Reply Name"
  }
}
'
[
  {
    "to": "[email protected]",
    "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 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 sent successfully

to
string<email>

Recipient email address

submittedAt
integer<int64>

Unix timestamp of submission

errorCode
integer

Error code (0 = success)

message
string

Status message