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":["3f747a8f-647c-472e-a638-8bd192ffce80","e74452af-e166-4498-aa44-d403e026a3e2","eb1765e5-a760-4708-bac6-b23f49f78119"],"template_uuid":"e6e603d0-9001-4019-b645-efeb81ee8dd6","known_dependants":{"client-1":"934838c1-f33f-47d5-9956-34b6a52b3401"}}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Client Service Agreement",
"client_uuids": [
"3f747a8f-647c-472e-a638-8bd192ffce80",
"e74452af-e166-4498-aa44-d403e026a3e2",
"eb1765e5-a760-4708-bac6-b23f49f78119"
],
"template_uuid": "e6e603d0-9001-4019-b645-efeb81ee8dd6",
"known_dependants": {
"client-1": "934838c1-f33f-47d5-9956-34b6a52b3401"
}
}
Response examples (201)
{
"name": "Welcome Template",
"uuid": "75d8fd0b-b31f-420e-b3ca-8c62ef865e2f",
"status": "published",
"version": 3,
"created_at": "2026-01-16T13:10:23+00:00",
"updated_at": "2026-01-16T13:10:23+00:00",
"public_pdf_url": "https://api.plannrcrm.com/document/15577543-3667-4d35-9cec-65a86ac1a622/content/pdf?plannr_account_uuid=c35544d0-8b17-4182-b3d8-6cdfc4461125",
"public_docx_url": "https://api.plannrcrm.com/document/66168fae-ca60-42c7-a577-1c8c527c3db4/content/docx?plannr_account_uuid=cd7ca329-7301-45b5-9a8a-6c190293ac32",
"public_sfdt_url": "https://api.plannrcrm.com/document/08e49820-d0dc-44c3-a218-32f0eb386463/content/sfdt?plannr_account_uuid=07301bf6-87f8-4d4c-964a-8303f8872d3c",
"known_dependants": {
"client-1": "53bb5048-0662-4643-9e5f-43c6856acee4"
},
"public_preview_url": "https://api.plannrcrm.com/document/d16b5ef1-a86d-43a9-a25e-93d920079cad/content/preview?plannr_account_uuid=c357ee91-135a-4d93-ad09-eefacaa810ce",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}