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":["ae200c88-26d5-4ed4-9976-c78dff2febca","c222b4b8-e92b-4f09-9a4e-0511426d8d9e","bf290452-1318-4094-9ee9-7b3da3ebfc6a"],"template_uuid":"5d385f18-db18-4795-a296-14527bd7e4f0","known_dependants":{"client-1":"d9e88a9d-6df8-4aca-91d0-f8406f0c2701"}}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"name": "Client Service Agreement",
"client_uuids": [
"ae200c88-26d5-4ed4-9976-c78dff2febca",
"c222b4b8-e92b-4f09-9a4e-0511426d8d9e",
"bf290452-1318-4094-9ee9-7b3da3ebfc6a"
],
"template_uuid": "5d385f18-db18-4795-a296-14527bd7e4f0",
"known_dependants": {
"client-1": "d9e88a9d-6df8-4aca-91d0-f8406f0c2701"
}
}
Response examples (201)
{
"name": "Welcome Template",
"uuid": "e2fce646-9782-46a4-9269-bedfba8b670c",
"status": "published",
"version": 3,
"created_at": "2026-02-06T09:09:44+00:00",
"updated_at": "2026-02-06T09:09:44+00:00",
"public_pdf_url": "https://api.plannrcrm.com/document/dc783420-179f-45f8-88ed-d019f7cb62b3/content/pdf?plannr_account_uuid=346dd40b-3e99-426a-bc71-928c7d1caed9",
"public_docx_url": "https://api.plannrcrm.com/document/bbfa006c-a377-4173-a78d-1b36e9aec932/content/docx?plannr_account_uuid=caa7d1c2-fcf3-4cac-b6c7-3885802b9112",
"public_sfdt_url": "https://api.plannrcrm.com/document/9203ea1d-5239-4574-94b2-cbcf780fdcaa/content/sfdt?plannr_account_uuid=8ab759e4-7307-44b6-b862-62febe209537",
"known_dependants": {
"client-1": "fed657a2-d892-4cba-8343-ce4710fcb8d0"
},
"public_preview_url": "https://api.plannrcrm.com/document/4630fa6a-5b68-435c-b128-8a9d748cf9bc/content/preview?plannr_account_uuid=8052edda-261f-4e65-aef8-fc64a84b00c1",
"required_dependants": {
"client-1": "client"
},
"last_publishing_error": "There was an error converting this file to PDF. Please try again later."
}