Publish to dochost
publishConvert Markdown or HTML into a hosted page and receive a shareable URL. Apply password protection, custom slug, or branding based on your plan.
Instructions
Publish 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. 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 | ||
| iterateHint | No | How to revise this page later. Follow it instead of publishing a second time. |