v2

latestOpenAPI 3.1.02026-07-26391214472.7 KB
admin-email-templates

Preview Template

Render a template against a sample record and return subject + body.

Used by the template editor's preview pane. Returns warnings so admins see when merge fields couldn't resolve (missing sample, missing record).

post/api/v1/admin/email-templates/{template_id}/preview

Path parameters

template_idinteger required

Headers

authorizationstring nullable
X-API-Keystring nullable

Request body

record_idinteger nullable

Response

Successful Response

subjectstring required
body_htmlstring nullable
body_textstring nullable
warningsstring[]