Body
-
The name of the document.
-
An array containing the client uuids that should be sent the document when it is built.
-
The UUID of the document template you want to be used with this document. You must not provide the sfdt or docx fields when creating from a template.
-
Optional: The document variable dependants. Used to swap variables out for real data.
Additional properties are allowed.
POST
/api/v1/document
curl \
--request POST 'https://api.plannrcrm.com/api/v1/document' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"name":"Client Service Agreement","client_uuids":["5349ced6-4a0b-4cf6-a06b-8d453ff96f78","08dbd094-ec5c-487b-9de5-5f066a5f9a3c","99358aa6-dc30-49bc-b5f6-ac4111b3a5da"],"template_uuid":"917330b4-c5e8-4857-bfc2-704749c88af8","known_dependants":{"client-1":"00a3ae6d-accc-44bc-acb8-ff956f4703e5"}}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Client Service Agreement",
"client_uuids": [
"5349ced6-4a0b-4cf6-a06b-8d453ff96f78",
"08dbd094-ec5c-487b-9de5-5f066a5f9a3c",
"99358aa6-dc30-49bc-b5f6-ac4111b3a5da"
],
"template_uuid": "917330b4-c5e8-4857-bfc2-704749c88af8",
"known_dependants": {
"client-1": "00a3ae6d-accc-44bc-acb8-ff956f4703e5"
}
}
Response examples (201)
{
"name": "Welcome Template",
"uuid": "00673698-8b0e-4246-9a9e-d7b24d1aa32e",
"status": "published",
"version": 3,
"created_at": "2025-12-24T11:02:59+00:00",
"updated_at": "2025-12-24T11:02:59+00:00",
"public_pdf_url": "https://api.plannrcrm.com/document/4aaabced-514d-4261-bb09-d5717121eb6f/content/pdf?plannr_account_uuid=9f372716-bdb9-4364-a875-7a67c0016bc8",
"public_docx_url": "https://api.plannrcrm.com/document/19ade5de-aa15-4d98-9526-d94346ae2515/content/docx?plannr_account_uuid=bd09b0aa-1566-4216-9228-f1db6febd27d",
"public_sfdt_url": "https://api.plannrcrm.com/document/c1adebb5-d8a4-4a1d-a25b-0cc0f9a73340/content/sfdt?plannr_account_uuid=d7510a10-17bb-4398-835b-c28bd8686d56",
"known_dependants": {
"client-1": "429207c6-6a77-410e-a257-46094f7dfd87"
},
"public_preview_url": "https://api.plannrcrm.com/document/f9792ac5-6bbc-4d93-b094-ac0069e2c427/content/preview?plannr_account_uuid=1a2dd37d-9518-433f-9fa0-e4d65506cb10",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}