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":["e6b6f3f4-aabf-403a-8c94-fd8653e99aa6","708d41c3-b09a-4278-bfa4-9c997ad22b0a","08c1878c-7fbc-48e9-819c-f1a6e66e947e"],"template_uuid":"dc5304c8-c80a-409d-bb24-d5b2b480ab96","known_dependants":{"client-1":"99f6833b-79bc-4f73-ae34-4e9e123909f2"}}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Client Service Agreement",
"client_uuids": [
"e6b6f3f4-aabf-403a-8c94-fd8653e99aa6",
"708d41c3-b09a-4278-bfa4-9c997ad22b0a",
"08c1878c-7fbc-48e9-819c-f1a6e66e947e"
],
"template_uuid": "dc5304c8-c80a-409d-bb24-d5b2b480ab96",
"known_dependants": {
"client-1": "99f6833b-79bc-4f73-ae34-4e9e123909f2"
}
}
Response examples (201)
{
"name": "Welcome Template",
"uuid": "8ec0c0e5-a84f-4fcd-a2fc-f631b43b8d77",
"status": "published",
"version": 3,
"created_at": "2026-02-26T15:22:28+00:00",
"updated_at": "2026-02-26T15:22:28+00:00",
"public_pdf_url": "https://api.plannrcrm.com/document/7c3dd55c-9a43-4dc9-a2ac-243848e965b1/content/pdf?plannr_account_uuid=b532d662-3f34-4321-a942-eb459bff0a00",
"public_docx_url": "https://api.plannrcrm.com/document/f8f702cc-c898-445e-a3a3-bb4365183d39/content/docx?plannr_account_uuid=d8fcabf5-9def-4af1-be83-160e03bf62ca",
"public_sfdt_url": "https://api.plannrcrm.com/document/f5fb47ab-b8cf-4b6e-981b-6623ee4ac11b/content/sfdt?plannr_account_uuid=e7ca7181-9c51-4ad7-8c26-4d2aca1edbde",
"known_dependants": {
"client-1": "9b73a045-e8bc-42a0-83f5-57debf409bfc"
},
"public_preview_url": "https://api.plannrcrm.com/document/ddd79a6e-228b-483b-9c4b-f17e52c26876/content/preview?plannr_account_uuid=dfbd12cc-152e-4e35-a15c-84c092a7ceda",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}