Publish a document Run in API Explorer
Ask AI
This will make the document un-editable and will upload a DOCX and PDF file to the client.
POST
/api/v1/document/{document_uuid}/publish
curl \
--request POST 'https://api.plannrcrm.com/api/v1/document/6ff8f7f6-1eb3-3525-be4a-3932c805afed/publish' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
"uuid": "2767a74f-d36d-4b6e-b1a3-b1e377a0e134",
"created_at": "2026-04-29T16:54:31+01:00",
"updated_at": "2026-04-29T16:54:31+01:00",
"version": 3,
"name": "Welcome Template",
"status": "published",
"last_publishing_error": "There was an error converting this file to PDF. Please try again later.",
"required_dependants": {
"client-1": "client"
},
"known_dependants": {
"client-1": "15375fc2-e463-4758-b6d9-d428b75cdfdc"
},
"public_docx_url": "https://api.plannrcrm.com/document/d48b65c2-aaa3-4a37-a8d0-a9678281f110/content/docx?plannr_account_uuid=97c49762-bf9e-4ae8-a9b8-30b7d42640df",
"public_sfdt_url": "https://api.plannrcrm.com/document/d19242fa-54ce-4790-bd09-674f419be787/content/sfdt?plannr_account_uuid=1886a502-1f6c-4cc9-8660-1199f22f76d6",
"public_pdf_url": "https://api.plannrcrm.com/document/7f1d6a8e-11e2-4246-9ec1-aa250d4dfe08/content/pdf?plannr_account_uuid=1a0919e1-22bb-4786-8aaf-5d374262188f",
"public_preview_url": "https://api.plannrcrm.com/document/aba8c77e-28f7-470f-869f-8eb3fef518a9/content/preview?plannr_account_uuid=cdcd53a0-8079-418b-8bc0-2a74b15e5662"
}