Publish document
publish_documentPublish a PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx/.xls), or CSV file as a browser-viewable page, private by default. Accepts filename and base64 content, up to 4 MB decoded. Documents become readable PDFs, slides have presentation controls, and spreadsheets have searchable sheet tabs. Preserves the original for download. A siteId replaces the page at the same address. Does not send invitations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Optional address label, 3-40 lowercase letters, digits or hyphens. Random when omitted. | |
| siteId | No | Replace this existing page at the same address. | |
| content | Yes | Base64 file bytes, not a local path or URL. | |
| filename | Yes | Original file name with extension, e.g. proposal.docx. | |
| siteName | No | Name shown to the user and recipients, e.g. "Q3 report". | |
| visibility | No | private (invitation-only, default) or public (anyone with the link). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page address. | |
| siteId | No | Page id. |