Skip to main content
Document templates are the settings records behind generated documents, each with a type such as PDF_DOCUMENT. You can list, create, read, update and delete them. This area has 5 endpoints, and all seven SDKs call every one.

At a glance

Before you call

Register your API credentials once when your app starts, as shown in Authentication. Every SDK sample on these pages then gets its client in one line. With cURL, send the access token in an Authorization header: Authorization: Bearer $ACCESS_TOKEN.

Things to know

  • name and document_template_type are required on a create. For example "document_template_type": "PDF_DOCUMENT".
  • A read reports the type in type. It also says whether the template is a system, custom, default or edited one.
  • A document template id starts with dt_.
  • Listings page by cursor. Records sit under data; pass pagination.next_cursor as cursor to read the next page, and stop when pagination.has_more is false.
  • A delete returns 204 with no body. Reading the document template afterwards returns 404.