Generated from Postwind commit a19b2e4 OpenAPI 0.1.0 synced

Templates

Message templates and their versions

The same group in the HTTP API

ToolConfirmProjectWhat it does
list_templatesoptionalLists the templates of a project in id order, each by its latest version and without its sources, at most 100 per call.
create_templateoptionalCreates a template, its version 1: a message (kind message, the default: a subject, an HTML body and an optional text body) or a partial (kind partial: a…
get_templateoptionalReads the latest version of a template, with its sources.
update_templateoptionalSaves a new version of a template: its latest version’s number plus one, with the sources given; the name and kind stay.
preview_templateoptionalRenders a message template as a subscriber would get it, before anything is sent: the subject, the HTML and the text, with warnings.
send_test_emailoptionalSends a message template as a test to a few addresses through the project’s transport: rendered as preview_template renders it with sample_attributes…
get_template_versionoptionalReads one version of a template, with its sources.