postmd_create_document
Publish Markdown as a shareable web page with optional password, expiry, and theme. Returns a share URL to distribute immediately.
Instructions
Publish Markdown as a PostMD web page. No API key required — anyone can publish. Returns docCode and data.shareUrl; hand shareUrl to people. With an API key the document belongs to that member and can be updated later; groupId files it into that group instead of the default one (key with documents:write).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Shown in the viewer and link previews. Defaults to fileName without .md. | |
| groupId | No | File the document in this group instead of the default group (needs an API key). | |
| fileName | No | Upload filename, must end in .md. Default document.md. | |
| markdown | Yes | Full Markdown document as one UTF-8 string (the entire source, not a summary). | |
| password | No | Readers must supply this password to see the content. | |
| viewerStyle | No | Viewer theme: readable (default), github, minimal, report, pamphlet or dark. Unknown values fall back to readable. | |
| shareEndDate | No | yyyyMMdd. The document stops being served after this date. Omit for no end date. |