postmd_create_document
Publish Markdown as a PostMD web page. No API key required — anyone can publish. Returns docCode and data.shareUrl; hand shareUrl to people. Documents have a 30-day retention period (data.retainedUntil) that extends on each read. Documents without a password can be updated or deleted by anyone; password-protected documents require the password or the owner's API key. With an API key the document belongs to that member; groupId files it into that group (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). May include graph data in an HTML comment, which the viewer draws beside the text; the format is at /docs/graph. | |
| 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. |