v1

latestOpenAPI 3.0.12026-07-24116117186.3 KB
Messages

Add base Email message

The method is used for adding/updating the language version of a message identified by the internal ID (for multilingual messages).

post/api/v1/messages/email

Request body

idinteger

Message ID.

namestring required

Message name.

languageCodestring

Language code.

tagsstring[]

List of tags.

subscriptionsKeysstring[]

Subscription categories keys, assigned to a message.

languagesstring[]

An array with the language codes for multilingual messages. Available for the GET method only.

fromstring required

<b>Required parameter.</b><br> Sender name and email address, e.g. "from": ""name" <info@test.com>"

subjectstring required

Message subject

htmlTextstring required

Message HTML code

rawHtmlstring

Message HTML code without styles.

ampHtmlstring

Message AMP code

cssstring

Message styles

updatedDatestring date-time

Message updated date

templateboolean

Set to true to create the message as a template. If false or absent, a general message is created.

Example request

{
  "from": "\"John Smith\" John.Smith@example.com",
  "subject": "Thanks for signing up",
  "translations": [
    {
      "from": "\"John Smith\" John.Smith@example.com",
      "subject": "Thanks for signing up"
    }
  ]
}