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":["e913584d-4a37-4aaf-b7b6-79e0ad092ddd","6f45e5c8-f9b5-410d-b833-fd5128b23508","c1f72f9e-b5b9-4f6a-bf07-480ab3bceaaa"],"template_uuid":"51532efb-504b-49c9-a175-b69ff3cd43b0","known_dependants":{"client-1":"b65cc046-632c-4d8e-880d-c16db461d66a"}}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Client Service Agreement",
"client_uuids": [
"e913584d-4a37-4aaf-b7b6-79e0ad092ddd",
"6f45e5c8-f9b5-410d-b833-fd5128b23508",
"c1f72f9e-b5b9-4f6a-bf07-480ab3bceaaa"
],
"template_uuid": "51532efb-504b-49c9-a175-b69ff3cd43b0",
"known_dependants": {
"client-1": "b65cc046-632c-4d8e-880d-c16db461d66a"
}
}
Response examples (201)
{
"name": "Welcome Template",
"uuid": "66b24c9e-5fad-4dff-a047-1bf605869e9e",
"status": "published",
"version": 3,
"created_at": "2026-03-18T16:05:26+00:00",
"updated_at": "2026-03-18T16:05:26+00:00",
"public_pdf_url": "https://api.plannrcrm.com/document/fcde079b-d8f2-462d-a808-955b8ea8e78e/content/pdf?plannr_account_uuid=12ea9bfa-5d00-4a33-a3ae-02ba0300f246",
"public_docx_url": "https://api.plannrcrm.com/document/289bccb1-3798-4a70-b738-e6e13fa5a46e/content/docx?plannr_account_uuid=dfb0363b-78ac-4e79-8da2-88a140a4086f",
"public_sfdt_url": "https://api.plannrcrm.com/document/1af5f5b1-d687-4463-a98b-fa44353c7432/content/sfdt?plannr_account_uuid=469b9bcb-9133-4fc8-9fab-dc3fb4090d98",
"known_dependants": {
"client-1": "2398e3b0-080b-47e7-9434-90a528046860"
},
"public_preview_url": "https://api.plannrcrm.com/document/0432914c-2f1f-4e31-bcea-08a1c3e643a4/content/preview?plannr_account_uuid=5cb255fb-b10a-4079-b687-0a5fd2120765",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}