Body
Required
-
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.
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":["dc23a4bc-bff2-47a1-953e-5acfe6cec367","2a2504ea-ee50-4b98-ba1a-d20e004f48a7"],"template_uuid":"e33e6669-87ca-41fd-8a7d-03e938812373","known_dependants":[{"client-1":"38a1b228-f487-419d-b115-c89745f50482"}]}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Client Service Agreement",
"client_uuids": [
"dc23a4bc-bff2-47a1-953e-5acfe6cec367",
"2a2504ea-ee50-4b98-ba1a-d20e004f48a7"
],
"template_uuid": "e33e6669-87ca-41fd-8a7d-03e938812373",
"known_dependants": [
{
"client-1": "38a1b228-f487-419d-b115-c89745f50482"
}
]
}
Response examples (201)
{
"name": "Welcome Template",
"uuid": "2d246798-17f8-484d-986c-2b86a9b487d9",
"status": "published",
"version": 3,
"created_at": "2025-12-04T22:09:16+00:00",
"updated_at": "2025-12-04T22:09:16+00:00",
"public_pdf_url": "https://api.plannrcrm.com/document/3bc467e4-48a4-4155-959c-1b3c33a7183e/content/pdf?plannr_account_uuid=588d09ce-6bd8-4af5-8d03-32f87ba82248",
"public_docx_url": "https://api.plannrcrm.com/document/31597f9c-0203-44ee-8ae2-d8f17f4882d2/content/docx?plannr_account_uuid=2ab35ae4-dee9-4c83-af94-d251bcae5045",
"public_sfdt_url": "https://api.plannrcrm.com/document/7a61745c-039c-4185-8c09-8b087e49d577/content/sfdt?plannr_account_uuid=8430ff3d-5d77-41d3-88cf-c672a0f846b2",
"known_dependants": {
"client-1": "d6b5d1be-e21d-485c-905b-bc18b2a64c08"
},
"public_preview_url": "https://api.plannrcrm.com/document/40afba27-840f-4fa0-b51e-d2650c1b8117/content/preview?plannr_account_uuid=03deeb37-7714-4ce1-894f-abf31b16001a",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}