Create a document template

POST /api/v1/document-template

Headers

application/json

Body Required

  • name string Required

    The name of the document template.

Responses

  • 201 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the resource.

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was updated.

    • version integer

      The document builder version. Used for internal purposes only. Defaults to 3

    • name string

      The name of the document template.

    • The required dependant variables of the document template.

      Additional properties are allowed.

    • The download URL of the DOCX content. This is intended for the user to download if they are signed into Plannr. You can access this data via the API using the route in /api/v1.

    • The download URL of the SFDT (SyncFusion) content. This is intended for the user to download if they are signed into Plannr. You can access this data via the API using the route in /api/v1.

    • The download URL of the PDF content. This is intended for the user to download if they are signed into Plannr. You can access this data via the API using the route in /api/v1.

    • The image preview URL of the template. This is intended for the user to preview the template before opening it. You can access this data via the API using the route in /api/v1.

POST /api/v1/document-template
curl \
 -X POST https://api.plannrcrm.com/api/v1/document-template \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
 -d '{"name":"Client Service Agreement"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}

# Payload
{
  "name": "Client Service Agreement"
}
Response examples (201)
{
  "name": "Welcome Template",
  "uuid": "7de0b161-709f-4791-9129-d7b79c45c041",
  "version": 3,
  "created_at": "2024-11-20T13:24:02+00:00",
  "updated_at": "2024-11-20T13:24:02+00:00",
  "public_pdf_url": "https://plannr.valet/document-template/46d5a51a-5db3-4113-bab9-c938ef2c730d/content/pdf?plannr_account_uuid=b34a6238-5b50-4575-9487-86850dcb8ddd",
  "public_docx_url": "https://plannr.valet/document-template/b36ada22-eeaa-4796-9968-3f403914a4db/content/docx?plannr_account_uuid=0d518f14-df62-4b7d-b87a-e56b8f96e5b0",
  "public_sfdt_url": "https://plannr.valet/document-template/cb029895-3605-4faa-9069-3375d0f8f387/content/sfdt?plannr_account_uuid=90f6e615-fc7b-4be8-900c-c0ae6faef8c4",
  "public_preview_url": "https://plannr.valet/document-template/aad28bfa-496c-4c26-b4b3-2d548718cfeb/content/preview?plannr_account_uuid=6cc0865c-f222-4ae7-b852-0f3f9de09b06",
  "required_dependants": {
    "client-1": "client"
  }
}