Create Template
Create a new template with a base64-encoded PDF document. The API automatically extracts the page count from the document.
seal_participants, recipients and fields are not accepted keys on this operation: they are ignored and nothing is created from them. When the request body contains any of them (the key being present is enough, whatever its value, including null or []), the 201 response carries warnings, one string per ignored key. Add participants and fields with PATCH /templates/{id} or PUT /templates/{id}.
Authorizations
Body
Base64-encoded PDF or DOCX document. DOCX files are automatically converted to PDF. The API will automatically extract the page count from the document. For documents larger than 5 MB, use POST /documents and pass the document_id instead. (mutually exclusive with document_id and document_ids)
"JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1Jlc291c..."
Temporary upload ids from POST /documents, in document order, to create a multi-document template (available to every company). Exactly one of document, document_id or document_ids (400 CONFLICTING_DOCUMENT_SOURCE); a repeated id answers 400 DUPLICATE_DOCUMENT_ID, more than 20 400 MAX_DOCUMENTS_EXCEEDED, an unknown or expired upload 400 DOCUMENT_UPLOAD_NOT_FOUND, a set above 100 MB 413 DOCUMENT_SET_TOO_LARGE. While multi-document editing is suspended, more than one entry in document_ids answers 409 MULTI_DOCUMENT_READ_ONLY.
1 - 20 elementsResponse
Template created successfully
The created template: every key of Template, plus warnings when the request body contained keys this operation ignores.
The template's documents in position order (multi-document; present for every company). On GET /templates (the list): A list entry carries no document_url. A parent whose document set has never been changed lists documents: [] here, while its single-resource GET answers its one document (with document_id null). On GET /templates/{id}, PUT /templates/{id} and POST /templates: A parent whose document set has never been changed answers its one document, with document_id null. While multi-document editing is suspended, this key is absent on the single-document path and in list and create responses.
Version of the document layout, raised when documents are added, removed or reordered (multi-document; available to every company). Field writes on a signing request with more than one document send it back as documents_layout_version. While multi-document editing is suspended, this key is absent on the single-document path and in list and create responses.