Skip to main content
POST
Render an email

Authorizations

Authorization
string
header
required

A session token from subscriber login, used by subscriber.dev's own apps. Requests about an environment also need its ID in the x-environment-id header. From your own code, use an API key.

Body

application/json
subject
string
required
Maximum string length: 500
body
string
required
layout
enum<string>
default:default
Available options:
default,
none
previewText
string

Short summary inboxes show next to the subject. Supports Liquid. Only used with the default layout.

Maximum string length: 255
fromName
string

Sender name for every email in this workflow, e.g. "Jane from Acme". Defaults to the email integration's fromName. The from address always comes from the integration.

Maximum string length: 255
replyTo
string<email>

Where replies to this workflow's emails go. Defaults to the email integration's replyTo, or the from address.

Pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$

Response

subject
string
required
html
string
required