Create a new post
Create a new post in your publication. The publication is identified by the API key provided in the Authorization header.
Requirements:
markdownfield is required and will be converted to TipTap JSON formattitlefield is required
Behavior:
- The post will be created as published by default. Set
statusto"draft"to create a draft instead - If
sendNewsletteris true, an email will be sent to all subscribers when the post publishes - Set
scheduledAt(Unix timestamp in milliseconds) to schedule first-publish for a future time. Must be in the future and at most 30 days out. Scheduling cannot be combined withstatus: "draft". When scheduled, the responsestatusis"scheduled"and the post publishes (plus sends newsletter, if requested) at the scheduled time.
Authorizations
API key for authenticating protected endpoints. Pass as Bearer token in Authorization header.
Body
Body
Post content in Markdown format
Title of the post
200Optional subtitle or brief summary
300Optional URL to the post's cover image
Whether to send an email newsletter to subscribers. Default: false
Status of the post. Default: published
published, draft Optional URL-friendly identifier for the post. If not provided, will be generated from title
1 - 256Optional preview text for the post. If not provided, will be generated from content
500Optional array of category tags for the post. Can also be a comma-separated string.
Optional Unix timestamp (milliseconds) to schedule first-publish of the post at a future time. Must be in the future. Cannot be combined with status: 'draft'. When set, the post is created and queued to publish (and send newsletter, if requested) at the specified time. Pass 0 or omit the field for an unscheduled post.
x >= 0
