Skip to main content
POST
Preview an email v2 action

Authorizations

Authorization
string
header
required

Path Parameters

campaignId
string
required
controllerId
string
required
actionId
string
required

Body

application/json
client_domain_id
string | null

Client domain to build the email against. A real send uses the domain the triggering event arrived on, so name that domain to see the links it produces. Defaults to the client's default domain.

data
object | null

Values the engine would have resolved from the action data map, keyed by data entry name. Available to the email expressions through the context data map. A preview does not evaluate the action data expressions, so an entry left out reads as absent. Defaults to no data.

person_id
string | null

Id of the person the email is built for. The person supplies the values that the email expressions read, such as the recipient address and the first name. Omit it to build the email for the preview person, whose email is preview@example.com and whose first name is preview_first_name. Extole creates that person on the first preview and reuses it after that, so an action is previewable before anyone has entered the journey.

sandbox
string | null

Sandbox to read the campaign from. Defaults to the campaign sandbox of the campaign being previewed, which holds the latest saved version.

variant
string | null

Campaign variant to build the email with. A real send evaluates the variant the campaign selected for the person, so name the variant you want to see. Defaults to the first variant the campaign declares, or to en when the campaign declares none.

Response

Successful response

bcc
string[]
required

Addresses the email would be blind copied to.

body
string
required

HTML body the email would be sent with.

cc
string[]
required

Addresses the email would be copied to.

do_not_send_reason
string | null
required

Reason this email would not send. Set by the email message expression of the action, or by the opt-out check when the action sends on a checked list and the recipient opted out of it. Absent when neither applies. A send applies suppression rules of its own, such as a bounced or blocked address, which a preview does not evaluate.

from
string | null
required

Address the email would be sent from. Absent when the action leaves the from address unset.

headers
object
required

Custom email headers the email would be sent with, keyed by header name.

optout_list
enum<string>
required

Opt-out list the email would send on. The promotional and personal lists are checked against the opt-out list. Only the promotional list adds the List-Unsubscribe and List-Unsubscribe-Post headers above.

Available options:
NOTIFICATION,
PERSONAL,
PROMOTIONAL,
TRANSACTIONAL
reply_to
string | null
required

Address replies would go to. Absent when the action leaves the reply-to address unset.

subject
string
required

Subject line the email would be sent with.

to
string
required

Address the email would be sent to.