Publish a new document, or fully replace the HTML on an existing one.For small changes to an existing document, prefer edit_document — you do not resend the whole file.
Parameters
Parameter
Type
Required
Description
title
string
Yes
Document title
html
string
Yes
Full HTML content of the document
document_id
uuid
No
Existing document ID to update. Omit to create new.
note
string
No
Version note / changelog entry
Returns
The tool returns JSON text from the API:
Field
Type
Description
document_id
uuid
Unique identifier for the document
version_id
uuid
Identifier for this specific version
share_url
string
Live customer link (https://unfurl.pub/d/…) — share this with clients
The html parameter must be a complete HTML document — include <!DOCTYPE html>, <head>, and <body> as appropriate for your content.
Important notes
Omit document_id to create a new document. Include it to update an existing one.
Save the document_id returned on creation — you need it for future updates via MCP or when you instruct the model explicitly.
share_url is the link to send — it stays the same when you publish again with the same document_id.
Version notes are optional but recommended — they appear in your version history in the dashboard.
edit_document
Updating a document
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Unfurl","colors":{"primary":"#4B6A8A","light":"#7B9AB8","dark":"#3A5570"},"logo":{"light":"https://mintcdn.com/00doc/wK42753nlbu4CaTp/logo/light.svg?fit=max\u0026auto=format\u0026n=wK42753nlbu4CaTp\u0026q=85\u0026s=4ab315ac5ef8a46cea10316d6750fc6c","dark":"https://mintcdn.com/00doc/wK42753nlbu4CaTp/logo/dark.svg?fit=max\u0026auto=format\u0026n=wK42753nlbu4CaTp\u0026q=85\u0026s=049772c3c01bd739b50aea24bc5952dc"},"favicon":"https://mintcdn.com/00doc/q1P_2PMIzOiWB5L4/favicon.svg?fit=max\u0026auto=format\u0026n=q1P_2PMIzOiWB5L4\u0026q=85\u0026s=930a2e6ba130f2165fca8e7d0979b7f0","navbar":{"links":[{"href":"https://unfurl.pub/dashboard","label":"Dashboard"}],"primary":{"type":"button","label":"Get Started Free","href":"https://unfurl.pub/dashboard"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"00doc","hasAudioNarration":false,"actualSubdomain":"00doc","customDomains":["00doc-web.vercel.app"],"gitSource":{"type":"github","owner":"pmontanaro","repo":"docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"entitlements":{},"buildId":"6aa104419a54d7c085e4ef33","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Documentation","count":26},{"language":"default","tag":"Guides","count":14},{"language":"default","tag":"API Reference","count":12},{"language":"default","tag":"MCP tools","count":11},{"language":"default","tag":"Getting Started","count":8},{"language":"default","tag":"Use Cases","count":8},{"language":"default","tag":"Core Concepts","count":4},{"language":"default","tag":"REST","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/publish-document","slug":"/api-reference/publish-document","pageMetadata":{"title":"publish_document","description":"Publish a new document or update an existing one.","href":"/api-reference/publish-document"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Publish a new document or update an existing one.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`publish_document`,children:`publish_document`}),`\n`,_jsxs(_components.p,{children:[`Publish a new document, or `,_jsx(_components.strong,{children:`fully replace`}),` the HTML on an existing one.`]}),`\n`,_jsxs(_components.p,{children:[`For small changes to an existing document, prefer `,_jsx(_components.a,{href:`/api-reference/edit-document`,children:_jsx(_components.code,{children:`edit_document`})}),` — you do not resend the whole file.`]}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Document title`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`html`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Full HTML content of the document`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_id`})}),_jsx(_components.td,{children:`uuid`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Existing document ID to update. Omit to create new.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`note`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Version note / changelog entry`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`returns`,children:`Returns`}),`\n`,_jsx(_components.p,{children:`The tool returns JSON text from the API:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`document_id`})}),_jsx(_components.td,{children:`uuid`}),_jsx(_components.td,{children:`Unique identifier for the document`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`version_id`})}),_jsx(_components.td,{children:`uuid`}),_jsx(_components.td,{children:`Identifier for this specific version`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`share_url`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Live customer link (`,_jsx(_components.code,{children:`https://unfurl.pub/d/…`}),`) — share this with clients`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`create-a-new-document`,children:`Create a new document`}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Tool call: publish_document`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` title: \"Q3 Sales Proposal — Acme Corp\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` html: \"\u003c!DOCTYPE html>\u003chtml>...\u003c/html>\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` note: \"Initial draft\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`update-an-existing-document`,children:`Update an existing document`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Tool call: publish_document`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` title: \"Q3 Sales Proposal — Acme Corp\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` html: \"\u003c!DOCTYPE html>\u003chtml>...\u003c/html>\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` document_id: \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` note: \"Updated pricing section per client feedback\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`html`}),` parameter must be a `,_jsx(_components.strong,{children:`complete HTML document`}),` — include `,_jsx(_components.code,{children:`\u003c!DOCTYPE html>`}),`, `,_jsx(_components.code,{children:`\u003chead>`}),`, and `,_jsx(_components.code,{children:`\u003cbody>`}),` as appropriate for your content.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`important-notes`,children:`Important notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Omit `,_jsx(_components.code,{children:`document_id`}),` to create a new document.`]}),` Include it to update an existing one.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Save the `,_jsx(_components.code,{children:`document_id`}),` returned on creation`]}),` — you need it for future updates via MCP or when you instruct the model explicitly.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`share_url`}),` is the link to send`]}),` — it stays the same when you publish again with the same `,_jsx(_components.code,{children:`document_id`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Version notes are optional but recommended`}),` — they appear in your version history in the dashboard.`]}),`\n`]}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`edit_document`,icon:`pen-to-square`,href:`/api-reference/edit-document`}),_jsx(Card,{title:`Updating a document`,icon:`arrows-rotate`,href:`/guides/updating-a-document`})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"publish_document","description":"Publish a new document or update an existing one.","href":"/api-reference/publish-document"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"publish_document","slug":"publish_document","depth":1,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[]},{"title":"Returns","slug":"returns","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Create a new document","slug":"create-a-new-document","depth":3,"children":[]},{"title":"Update an existing document","slug":"update-an-existing-document","depth":3,"children":[]}]},{"title":"Important notes","slug":"important-notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"00doc","siteName":"Unfurl","title":"publish_document - Unfurl","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-09T07:01:58.407Z","originalFileLocation":"api-reference/publish-document.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Publish a new document or update an existing one.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Unfurl\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"publish_document - Unfurl\">\u003cmeta data-mint-head property=\"og:description\" content=\"Publish a new document or update an existing one.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Unfurl\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://00doc-web.vercel.app/docs/api-reference/publish-document\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://00doc.mintlify.site/docs/_mintlify/api/og/v2?division=MCP+tools\u0026amp;title=publish_document\u0026amp;description=Publish+a+new+document+or+update+an+existing+one.\u0026amp;theme=e0f41392dfd2c6de98e764fc\u0026amp;signature=801f8420e04605faf549e878fe6126eccbe326b777b327fb82d36e1d9ee3e72a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"publish_document - Unfurl\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Publish a new document or update an existing one.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://00doc.mintlify.site/docs/_mintlify/api/og/v2?division=MCP+tools\u0026amp;title=publish_document\u0026amp;description=Publish+a+new+document+or+update+an+existing+one.\u0026amp;theme=e0f41392dfd2c6de98e764fc\u0026amp;signature=801f8420e04605faf549e878fe6126eccbe326b777b327fb82d36e1d9ee3e72a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/00doc/TMhtFySZ_XA1zypu/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Unfurl\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4B6A8A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://00doc-web.vercel.app/docs/api-reference/publish-document\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/publish-document.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://00doc-web.vercel.app/#organization\",\"name\":\"Unfurl\",\"url\":\"https://00doc-web.vercel.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/00doc/wK42753nlbu4CaTp/logo/light.svg?fit=max\u0026auto=format\u0026n=wK42753nlbu4CaTp\u0026q=85\u0026s=4ab315ac5ef8a46cea10316d6750fc6c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://00doc-web.vercel.app/docs#website\",\"name\":\"Unfurl\",\"url\":\"https://00doc-web.vercel.app/docs\",\"publisher\":{\"@id\":\"https://00doc-web.vercel.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://00doc-web.vercel.app/docs/api-reference/publish-document#webpage\",\"url\":\"https://00doc-web.vercel.app/docs/api-reference/publish-document\",\"name\":\"publish_document\",\"description\":\"Publish a new document or update an existing one.\",\"dateModified\":\"2026-09-09T07:01:58.407Z\",\"isPartOf\":{\"@id\":\"https://00doc-web.vercel.app/docs#website\"},\"breadcrumb\":{\"@id\":\"https://00doc-web.vercel.app/docs/api-reference/publish-document#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://00doc-web.vercel.app/docs/api-reference/publish-document#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MCP tools\",\"item\":\"https://00doc-web.vercel.app/docs/api-reference\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"publish_document\",\"item\":\"https://00doc-web.vercel.app/docs/api-reference/publish-document\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://00doc-web.vercel.app/docs/api-reference/publish-document#article\",\"headline\":\"publish_document\",\"name\":\"publish_document\",\"description\":\"Publish a new document or update an existing one.\",\"url\":\"https://00doc-web.vercel.app/docs/api-reference/publish-document\",\"mainEntityOfPage\":{\"@id\":\"https://00doc-web.vercel.app/docs/api-reference/publish-document#webpage\"},\"dateModified\":\"2026-09-09T07:01:58.407Z\",\"publisher\":{\"@id\":\"https://00doc-web.vercel.app/#organization\"},\"isPartOf\":{\"@id\":\"https://00doc-web.vercel.app/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Unfurl\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Unfurl\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/publish-document.md","siteName":"Unfurl","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/getting-started"}]},{"tab":"API Reference","groups":[{"group":"MCP tools","pages":[{"title":"API reference","description":"MCP tools and REST endpoints for publishing, editing, and managing Unfurl documents.","href":"/api-reference"},{"title":"publish_document","href":"/api-reference/publish-document"},{"title":"edit_document","description":"Apply search/replace edits to the current HTML without resending the whole file.","href":"/api-reference/edit-document"},{"title":"get_document","href":"/api-reference/get-document"},{"title":"update_document","href":"/api-reference/update-document"},{"title":"list_documents","href":"/api-reference/list-documents"},{"title":"find_document","href":"/api-reference/find-document"},{"title":"get_workspace_info","href":"/api-reference/get-workspace-info"},{"title":"list_feedback","href":"/api-reference/list-feedback"},{"title":"resolve_feedback","href":"/api-reference/resolve-feedback"},{"title":"delete_document","href":"/api-reference/delete-document"}]},{"group":"REST","pages":[{"title":"REST API (v1)","href":"/api-reference/rest-api"}]}]},{"tab":"Use Cases","pages":[{"title":"Use Cases","href":"/use-cases/sales-proposals"}]}]},"basePath":"","title":"publish_document - Unfurl","deploymentId":"dpl_9NURmhhAnEA2MBJSAbn1GXd2czCa","buildId":"dpl_9NURmhhAnEA2MBJSAbn1GXd2czCa","dynamics":[],"chunks":[]}