Publish a document
This will make the document un-editable and will upload a DOCX and PDF file to the client.
Headers
-
Content-Type
string -
Accept
string -
X-PLANNR-ACCOUNT-UUID
string
Path parameters
-
document_uuid
string Required
POST
/api/v1/document/{document_uuid}/publish
curl \
--request POST 'https://api.plannrcrm.com/api/v1/document/document_uuid/publish' \
--header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
"name": "Welcome Template",
"uuid": "2160da98-e735-41b9-bd81-480e45218547",
"status": "published",
"version": 3,
"created_at": "2025-06-13T16:58:58+01:00",
"updated_at": "2025-06-13T16:58:58+01:00",
"public_pdf_url": "https://plannr.valet/document/8da272bd-25aa-490c-936c-2f4786a787dc/content/pdf?plannr_account_uuid=cab29a77-74d7-4207-a25d-ceecb6673037",
"public_docx_url": "https://plannr.valet/document/5fb08678-40db-4667-851d-f9834fa6f89a/content/docx?plannr_account_uuid=3f1be45e-6cd5-4876-ba99-82f4392fb765",
"public_sfdt_url": "https://plannr.valet/document/0d514873-d61b-4f15-b19c-ba95b487580c/content/sfdt?plannr_account_uuid=0496c70d-0f93-4e60-9f64-d1a32b688cf6",
"known_dependants": {
"client-1": "109e92b3-775f-41ff-ae25-0efa37d926f8"
},
"public_preview_url": "https://plannr.valet/document/9c80d4bf-5cfb-4497-a0c2-37d371a911b8/content/preview?plannr_account_uuid=49affbbb-d307-4093-9a0a-312ec0f41659",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}