Create an email from MJML

The method allows creating an email in the user's project by importing MJML markup. The MJML is compiled to HTML compatible with Stripo Editor. If the plan limit for emails is reached, the request will be rejected.

Body Params
string
required

MJML markup to be compiled and imported as an email

string
required

The name of the email to create

int64

The ID of the folder where the email should be placed. If not specified, the email will be created in the root folder

tags
array of strings

Names of the tags of the email. Not passed or empty — the email has no tags. Each name is looked up among the email tags of the organization exactly, case included: an existing tag is set as it is; a name the organization has no tag of creates the tag, the same way as in the email details in Stripo, without a category. A new tag name is up to 30 characters: letters, digits, _ and -. Up to 20 tags per email; repeated names count once. The tags are set on the email, not on its language versions.

tags
Headers
string

Authentication token

Responses

400

A tag cannot be set: more than 20 tags, or a new tag name that breaks the rules (up to 30 characters: letters, digits, _ and -). The message names the tags; the email is not created or changed.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json