Publish a document Run in API Explorer
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)
{
"name": "Welcome Template",
"uuid": "cb7ab021-3e1b-45d4-887e-2141f2f2daca",
"status": "published",
"version": 3,
"created_at": "2025-11-17T21:14:39+00:00",
"updated_at": "2025-11-17T21:14:39+00:00",
"public_pdf_url": "https://api.plannrcrm.com/document/d7c6a56b-aca6-48da-9898-197abf684218/content/pdf?plannr_account_uuid=bc1b7880-8167-4e4c-a385-7e8fd8799918",
"public_docx_url": "https://api.plannrcrm.com/document/ceaed927-51f7-4c7a-9f6a-e23ffc5066cf/content/docx?plannr_account_uuid=d2b7e4b5-6a2d-4fc4-aeb8-a4e8114ae475",
"public_sfdt_url": "https://api.plannrcrm.com/document/cea68176-be56-4a0a-ab5d-abaad731a4c7/content/sfdt?plannr_account_uuid=5f197b4b-a579-48cf-a4c7-1cb646e765de",
"known_dependants": {
"client-1": "cdd4e852-0fda-4a38-8d65-e0d6545c3675"
},
"public_preview_url": "https://api.plannrcrm.com/document/64cc55ac-69b8-4f0e-859f-bb57446197fc/content/preview?plannr_account_uuid=0fc996b9-b651-4728-99e2-d584db531b5d",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}