Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Supplying both html and mjml in the same request is rejected.

subject
string
required

Maximum 256 characters.

html
string

Maximum 500,000 characters.

mjml
string

Maximum 500,000 characters. The html it compiles to must also be within the html limit.

text
string

Maximum 100,000 characters.

inlineStyles
boolean

Inline CSS into the HTML, as a send does. Defaults to true, so the preview matches what recipients receive.

data
object

Sample data used to interpolate Liquid variables.

Response

OK

subject
string
required
html
string
text
string