Skip to main content
POST
JavaSript

Authorizations

X-SubAccount-ApiKey
string
header
required

This api key can be used only for sub account level operations

Body

application/json

Email message details with template information

from
object
replyTo
object
to
object[]
subject
string
preText
string
htmlBody
string
textBody
string
ampBody
string
ippool
string
headers
object
trackOpens
boolean
trackClicks
boolean
groups
string[]
attachments
object[]
webhookEndpoint
string
template
string
templateId
string

Template ID for the email template

templateVariables
object

Key-Value pair of template variables

Response

200 - application/json

A list of email message response objects.

to
string
submittedAt
integer<int64>

UNIX epoch nano timestamp

messageId
string

Message UUID

errorCode
integer
message
string