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": "c31adcd6-0264-4140-98ef-9f5aa75cb89d",
"created_at": "2026-04-13T17:23:51+01:00",
"updated_at": "2026-04-13T17:23:51+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": "3e3e4fa3-91a0-457e-9607-ef712c549443"
},
"public_docx_url": "https://api.plannrcrm.com/document/a131fd40-e8ee-44a9-8675-ac2ab0eb3f73/content/docx?plannr_account_uuid=abd01da7-b66e-40e7-a792-8cc06f24e9ac",
"public_sfdt_url": "https://api.plannrcrm.com/document/a931cca6-d4aa-4177-bbcf-4d75f40c8743/content/sfdt?plannr_account_uuid=0fb1ada1-e430-428c-8ebe-fe93cc071b42",
"public_pdf_url": "https://api.plannrcrm.com/document/1b5d9ba4-9e03-49d8-8794-44bb7bd39f75/content/pdf?plannr_account_uuid=0e83122a-9297-4671-b119-610adf943025",
"public_preview_url": "https://api.plannrcrm.com/document/d41c20d4-2caf-4cb9-9163-17a9a3574f77/content/preview?plannr_account_uuid=45de0548-c7e6-4de7-b72b-1128886763de"
}