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": "e0638275-0dd0-4208-9d85-170e728ffbb0",
"created_at": "2026-05-19T18:31:17+01:00",
"updated_at": "2026-05-19T18:31:17+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": "052ea92f-1b51-4edd-bf1f-32b5cbc354d4"
},
"public_docx_url": "https://api.plannrcrm.com/document/a17d2ffb-df3e-4ebb-b557-051a088deaa1/content/docx?plannr_account_uuid=e6e8b96c-cf95-4c81-a704-c12ef4f1d92c",
"public_sfdt_url": "https://api.plannrcrm.com/document/6189037d-b30d-4d5b-bf92-ba5b9089dd2d/content/sfdt?plannr_account_uuid=872700c7-6e14-4e0e-9774-e3989c008342",
"public_pdf_url": "https://api.plannrcrm.com/document/6f103aea-1e60-439d-a238-4a6597e251e9/content/pdf?plannr_account_uuid=bd24d41b-8517-4246-9165-c3a3c10f11f6",
"public_preview_url": "https://api.plannrcrm.com/document/79ed398a-a4a6-472d-b005-fa5c6408ab0c/content/preview?plannr_account_uuid=a1d2b3e9-9cc1-4fbb-920e-c64f30a252ff"
}