Campaigns mail preview create
post/mail/templates/preview
Render a template (or inline content) with data exactly as a send would, and list the variables it asked for that the data did not carry. Sends and stores nothing.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
campaigns:read- Mcp
rivier_campaign_mail_preview- Graphql
Query.campaignsMailPreviewCreate- Sdk
mail.preview- Cli
mail preview
Request bodyapplication/json, required
- templatestringA saved template (name or id) At most 120 characters.
- versionintegerAt least 1.
- subjectstringAt most 998 characters.
- htmlstringAt most 1000000 characters.
- textstringAt most 1000000 characters.
- dataobjectDefaults to the template's test data
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring