Create workspace post template <Badge intent="info" minimal outlined>OAuth Scope: posts:write</Badge>
This feature is currently in beta and the API is subject to change.
This endpoint is available to workspaces on the Max and Enterprise plans.
Create a post template that belongs to the workspace, so every publication in the workspace can start a post from it.
A workspace template holds only what does not depend on a publication. Newsletter lists, sending addresses, paywalls, content tags, authors and thumbnails belong to a single publication and are not accepted. Blocks that need a publication (automated_advertisement_placement, embed_link, paywall_break, poll, programmatic_ads_logo and rss), condition sets in visibility_settings, and button blocks with a relative href are refused. As on every post template, advertisement blocks are refused too.
Requires an API key with access to every publication in the workspace.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
The structured content blocks posts built from this template start with. Blocks that need a publication are refused; see the endpoint description.
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, so 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.