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:
- title field is required
- Provide content as either markdown (converted to TipTap JSON) OR bodyJson (a Tiptap document for content with buttons/linked images) — exactly one is required, not both
Behavior:
- The post will be created as published by default. Set status to "draft" to create a draft instead
- If sendNewsletter is 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 with status: "draft". When scheduled, the response status is "scheduled" and the post publishes (plus sends newsletter, if requested) at the scheduled time.
Request body
Response
Post created successfully
Changes
Changed in 8 of the 61 revisions of this API.410
- ○
added the new optional request property
imageAltnew-optional-request-property
- ○
- ○
added the new optional request property
authorIdsnew-optional-request-property
- ○
- ○
added the new optional request property
bodyJsonnew-optional-request-property
- ○
the request property
markdownbecame optionalrequest-property-became-optional
- ○
- ●
removed the optional property
errorfrom the response with the400statusresponse-optional-property-removed
- ●
removed the optional property
errorfrom the response with the401statusresponse-optional-property-removed
- ●
removed the optional property
errorfrom the response with the404statusresponse-optional-property-removed
- ●
removed the optional property
errorfrom the response with the500statusresponse-optional-property-removed
- ●
- ○
added the new optional request property
scheduledAtnew-optional-request-property
- ○
added the required property
statusto the response with the200statusresponse-required-property-added
- ○
- ○
added the new optional request property
statusnew-optional-request-property
- ○
- ○
request property
categorieslist-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
sendNewsletterlist-of-types was widened by adding typesstringto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
- ○
endpoint added
endpoint-added
- ○