Templates

Create an email template (draft)

post/templates

Request

  • Base URL: https://api.groundmail.dev
  • URL: https://api.groundmail.dev/templates
  • Auth: HTTP bearer

Request body

namestring required
subjectstring required
format'html' | 'blocks'
preheaderstring
htmlstring
textstring
designobject

Required when format is blocks (defaults to empty document). Supports settings.globalCss for author-supplied CSS compiled at render time.

aliasstring
variablesstring[]
unsubscribe_enabledboolean
category'transactional' | 'product'

newsletter is rejected with a validation_error: templates are for transactional and product email. Approved accounts send newsletters with category: newsletter on POST /emails.

folderstring

Folder to file it in on the dashboard, matched by name (any case) and created when it does not exist.

Response

Template created

Changes

No recorded changes to this operation across all 2 revisions of this API.