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)
{
"name": "Welcome Template",
"uuid": "8a1020cd-01c6-4ca6-94a3-ca91ba31fe95",
"status": "published",
"version": 3,
"created_at": "2026-04-08T15:40:47+01:00",
"updated_at": "2026-04-08T15:40:47+01:00",
"public_pdf_url": "https://api.plannrcrm.com/document/892bc3c9-0fee-41d0-9e6a-0edd1cc4c1da/content/pdf?plannr_account_uuid=bf8ecc70-18a7-4feb-970d-32dc865c3a29",
"public_docx_url": "https://api.plannrcrm.com/document/fb195d86-f7a9-4356-b41b-7e0b572f228c/content/docx?plannr_account_uuid=7d604266-fb70-4efa-8498-634847226f99",
"public_sfdt_url": "https://api.plannrcrm.com/document/8f4cf0e9-0044-4c92-8c6a-02ff926edbcd/content/sfdt?plannr_account_uuid=12f56c27-7037-4fa0-869c-bc989464af6f",
"known_dependants": {
"client-1": "3ad6ed17-83e2-4b57-b6f0-8c089b55d228"
},
"public_preview_url": "https://api.plannrcrm.com/document/24740cc8-ebe6-4834-9665-ea2d39a23e58/content/preview?plannr_account_uuid=2ce0694d-756d-4590-afe2-8b3089facf1e",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}