Upload your HTML template to created campaign [Rate limited]

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…

You can use your custom HTML template and associate it with created campaign using this endpoint.

HTML template

HTML template must contain head and body tags, a link for unsubscribing is also required.

Example of HTML template with unsubscribe link:

<html>
    <head>
        <title>Email template</title>
    </head>
    <body>
        <h1>Title</h1>
        <p>Content</p>
        <p>
            <small>
                <a href="{$unsubscribe}">Unsubscribe</a>
            </small>
        </p>
    </body>
</html>

Plain text mail

Some email clients do not support HTML emails so you need to set plain text email and it must contain these variables:

  • {$unsubscribe} - unsubscribe link
  • {$url} - URL to your HTML newsletter
Path Params
int32
required

ID of campaign

Body Params
string
required
Defaults to null

HTML template source (must contain head and body tags)

string
required
Defaults to null

Plain text of email

boolean
Defaults to false

Defines if it is needed to convert available CSS to inline CSS (excluding media queries)

Responses

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