Create post template OAuth Scope: posts:write
Create post template OAuth Scope: posts:write
This endpoint is available to publications on the Pro and Enterprise plans.
Create a post template for a specific publication. Posts created from the template start with its content and settings.
Content is optional: a template created without blocks or body_content starts with an empty body. Provide one or the other, never both.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
The structured content blocks posts built from this template start with. Supports the same block types as Create Post, with the exception of advertisement: an advertisement opportunity is booked for a single send and cannot be stored on a template.
The content posts built from this template start with, as a single raw HTML string. The HTML is wrapped in an htmlSnippet block internally. Note that <style> and <link> tags are removed during sanitization — use inline styles for all visual styling.
Custom email headers posts built from this template start with. Set a value to null to suppress a header inherited from the newsletter list or publication. System-managed headers (e.g. List-Unsubscribe, X-SMTPAPI) cannot be overridden.
The utm_source appended to links in posts built from this template.
The utm_medium appended to links in posts built from this template.
The utm_campaign appended to links in posts built from this template.