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": "b72372d4-e164-4557-bce9-a641fa7de8b7",
"status": "published",
"version": 3,
"created_at": "2025-06-05T11:39:40+01:00",
"updated_at": "2025-06-05T11:39:40+01:00",
"public_pdf_url": "https://plannr.valet/document/a8bbb95c-c15b-404c-9c5b-685ae252ef8a/content/pdf?plannr_account_uuid=3227891c-2ec7-49d5-a0ab-b02654b1c2d7",
"public_docx_url": "https://plannr.valet/document/95abbdb2-ae37-4a8e-87c6-9973514b7ad9/content/docx?plannr_account_uuid=d1ce0c87-9b02-4a69-b5f0-c592f304dbc9",
"public_sfdt_url": "https://plannr.valet/document/a75fb86d-4771-47cb-9423-2003b4c395bc/content/sfdt?plannr_account_uuid=c144bb13-78e9-44f4-9875-2448c35572f0",
"known_dependants": {
"client-1": "390568c4-76e4-453a-bb5f-2a31f1377ff1"
},
"public_preview_url": "https://plannr.valet/document/f886930c-2637-440e-8f76-8ccc2939845e/content/preview?plannr_account_uuid=65d6f506-e0ce-4bc5-b745-e62ddbf51034",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}