Publish a document

POST /api/v1/document/{document_uuid}/publish

This will make the document un-editable and will upload a DOCX and PDF file to the client.

Headers

  • X-PLANNR-ACCOUNT-UUID string

Path parameters

  • document_uuid string Required

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • created_at string

      The timestamp of when the resource was created.

    • updated_at string

      The timestamp of when the resource was updated.

    • version integer

      The document builder version. Used for internal purposes only. Defaults to 3

    • name string

      The name of the document.

    • status string

      The status of the document.

    • last_publishing_error string

      The last error that occured during publishing.

    • required_dependants object

      The required dependant variables of the document.

      Hide required_dependants attribute Show required_dependants attribute object
      • client-1 string
    • known_dependants object

      The dependants submitted to the document previously.

      Hide known_dependants attribute Show known_dependants attribute object
      • client-1 string
    • public_docx_url string

      The download URL of the DOCX content. This is intended for the user to download if they are signed into Plannr. You can access this data via the API using the route in /api/v1.

    • public_sfdt_url string

      The download URL of the SFDT (SyncFusion) content. This is intended for the user to download if they are signed into Plannr. You can access this data via the API using the route in /api/v1.

    • public_pdf_url string

      The download URL of the PDF content. This is intended for the user to download if they are signed into Plannr. You can access this data via the API using the route in /api/v1.

    • public_preview_url string

      The image preview URL of the document. This is intended for the user to preview the document before opening it. You can access this data via the API using the route in /api/v1.

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": "dfd4c151-aa65-45ab-9fe3-5dfb38a1a77e",
  "status": "published",
  "version": 3,
  "created_at": "2025-06-25T15:10:44+01:00",
  "updated_at": "2025-06-25T15:10:44+01:00",
  "public_pdf_url": "https://api.plannrcrm.com/document/40123a37-45f0-493c-8802-63093022958d/content/pdf?plannr_account_uuid=76e9e951-0736-45aa-b6a8-98970490eba7",
  "public_docx_url": "https://api.plannrcrm.com/document/e0314f56-5146-4ed1-b37a-42b21a943553/content/docx?plannr_account_uuid=232918e2-0099-4c54-b83d-b02c7193d14f",
  "public_sfdt_url": "https://api.plannrcrm.com/document/dac50325-7d89-4059-ad06-5ac03ab8019e/content/sfdt?plannr_account_uuid=d9c20f0a-bedc-49a2-90d6-8c6af730a308",
  "known_dependants": {
    "client-1": "a1ebff46-6cdf-4e53-9b42-b1b51cfd8462"
  },
  "public_preview_url": "https://api.plannrcrm.com/document/d18378d4-02bc-40a5-ac06-5d4817de6dae/content/preview?plannr_account_uuid=637839d0-6e26-4e64-84a9-41b1d6862cbc",
  "required_dependants": {
    "client-1": "client"
  },
  "last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}