Skip to main content
POST
Send email template

Authorizations

X-API-Key
string
header
required

Preferred. API key value directly.

Query Parameters

channelId
string

Channel id. Auto-selects when omitted.

Example:

"ch_123"

templateName
string

Template name (case does not matter). Send this or templateId.

Example:

"order_update"

templateId
string

Template id from the list. Use it when two templates share a name.

Example:

"YOUR_TEMPLATEID"

to
string

One email address, or several separated by commas (up to 25).

Example:

"919876543210"

variables
object

Values for the variables the template takes, as a JSON object (a JSON text in a GET request). A variable the template needs and does not have a fallback for must be sent. A value can be a text with line breaks (one line per row in the email) or a list of texts, for example a change log: {"changelog":["Faster search","New export"]} shows one item per line.

Example:
listStyle
string

How the items of a list value are written: plain (default), numbers ("1. Faster search") or dots.

Example:

"YOUR_LISTSTYLE"

subject
string

Replaces the subject of the template. One line, up to 300 characters.

Example:

"YOUR_SUBJECT"

senderId
string

Sender connection id. The channel default sender when omitted.

Example:

"YOUR_SENDERID"

Body

application/json
to
string
required

One email address, or several separated by commas (up to 25).

Example:

"919876543210"

channelId
string

Channel id. Auto-selects when omitted.

Example:

"ch_123"

templateName
string

Template name (case does not matter). Send this or templateId.

Example:

"order_update"

templateId
string

Template id from the list. Use it when two templates share a name.

Example:

"YOUR_TEMPLATEID"

variables
object

Values for the variables the template takes, as a JSON object (a JSON text in a GET request). A variable the template needs and does not have a fallback for must be sent. A value can be a text with line breaks (one line per row in the email) or a list of texts, for example a change log: {"changelog":["Faster search","New export"]} shows one item per line.

Example:
listStyle
string

How the items of a list value are written: plain (default), numbers ("1. Faster search") or dots.

Example:

"YOUR_LISTSTYLE"

subject
string

Replaces the subject of the template. One line, up to 300 characters.

Example:

"YOUR_SUBJECT"

senderId
string

Sender connection id. The channel default sender when omitted.

Example:

"YOUR_SENDERID"

Response

Success. Envelope: { success:true, data, message? }.

success
boolean
required
Example:

true

data
any
message
string
pagination
object
total
number