Publish to dochost
publishPublish Markdown or HTML as a hosted dochost page and get a shareable URL. Respects your plan: link lifetime, password protection, custom slug, and branding all follow your account entitlements. Paid plans publish without dochost branding by default — pass noBranding: false to keep the mark. When the account cannot have an option you asked for, the publish still succeeds and the result carries ignoredOptions + ignoredNote — relay that instead of reporting plain success. The link is issued on the account's primary host (a custom domain or subdomain when one is set in Settings › Domains, otherwise dochost.co/d); get_account reports which.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| format | No | ||
| public | No | ||
| password | No | ||
| customSlug | No | ||
| noBranding | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The shareable page URL, on the account's primary host (custom domain, subdomain, or dochost.co/d). Relay it verbatim. | |
| note | No | Free-tier only: expiry warning + upgrade link. Relay this to the user. | |
| slug | Yes | ||
| format | Yes | ||
| expiresAt | No | ISO timestamp, or null when the link is permanent. | |
| permanent | Yes | ||
| ignoredNote | No | Plain-language consequence of ignoredOptions. Relay it instead of reporting plain success. | |
| iterateHint | No | How to revise this page later. Follow it instead of publishing a second time. | |
| ignoredOptions | No | Paid options this account does not have, which were dropped. Present only when non-empty — the publish still succeeded, but NOT as asked. |