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":["6aecd42f-53d0-48ec-8412-0a68c5ed6cdf","ead69ef7-d26a-4a07-a208-b556df0df135","b9d7d7f2-9b9a-4081-a89d-5123c6f08b88"],"template_uuid":"361fdc37-8e12-48d8-a943-fbeffe7f9b54","known_dependants":{"client-1":"f4de757d-657e-4394-9fb5-68033f2399e4"}}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Client Service Agreement",
"client_uuids": [
"6aecd42f-53d0-48ec-8412-0a68c5ed6cdf",
"ead69ef7-d26a-4a07-a208-b556df0df135",
"b9d7d7f2-9b9a-4081-a89d-5123c6f08b88"
],
"template_uuid": "361fdc37-8e12-48d8-a943-fbeffe7f9b54",
"known_dependants": {
"client-1": "f4de757d-657e-4394-9fb5-68033f2399e4"
}
}
Response examples (201)
{
"name": "Welcome Template",
"uuid": "df5466e7-49f5-436c-bb82-3d8d06139d4b",
"status": "published",
"version": 3,
"created_at": "2026-04-08T15:40:47+01:00",
"updated_at": "2026-04-08T15:40:47+01:00",
"public_pdf_url": "https://api.plannrcrm.com/document/288322c0-fce3-4c43-8c8d-c0076e65a2e6/content/pdf?plannr_account_uuid=7a34a583-b38b-4c61-b8ad-5710d2e7bace",
"public_docx_url": "https://api.plannrcrm.com/document/5bab8c11-6aa4-4bcd-987f-c93b66c70ba0/content/docx?plannr_account_uuid=b0f98404-ff61-4d0a-868a-0176c838c5ab",
"public_sfdt_url": "https://api.plannrcrm.com/document/c57ae004-9124-435b-a238-cff6cbefc172/content/sfdt?plannr_account_uuid=a76d5c88-c6e7-484d-8ab4-053d4ef5d105",
"known_dependants": {
"client-1": "47468f7a-6ac3-49ba-872f-0b11d2b3d30b"
},
"public_preview_url": "https://api.plannrcrm.com/document/8aba4bd1-0349-4001-96da-19be244d67b1/content/preview?plannr_account_uuid=b1a9f753-1fc5-4939-9224-8ce0162feed3",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}