Create and publish a document in one call

Creates a new document and immediately publishes it. Returns the published URL. This is the most common endpoint for programmatic publishing. Equivalent to calling POST /documents followed by POST /documents/{id}/publish.

post/documents/publish

Request

  • Base URL: https://api.unmarkdown.com/v1
  • URL: https://api.unmarkdown.com/v1/documents/publish
  • Auth: HTTP bearer

Request body

contentstring required

Markdown content

titlestring
template_idstring
theme_mode'light' | 'dark'
slugstring

Custom URL slug (Pro only)

descriptionstring

Response

Document created and published

idstring uuid
titlestring
published_urlstring uri
published_atstring date-time
template_idstring
word_countinteger
reading_time_minutesinteger

Changes

No recorded changes to this operation across all 1 revision of this API.