Skip to main content
Retrieve a single template

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

id
string
required

Identifier of the template to retrieve, as returned when it was created or found.

Minimum string length: 1
Example:

"acc6bd04-8165-45b5-a3e8-b4cee54c6b90"

Response

Returns the template.

__addedBy
string | null

User who created the template. It is recorded once and stays as it is, even where the template is later handed over to somebody else.

__addedOn
string<date-time> | null

When the template was created.

__editable
boolean

Whether the calling user may change or delete this template. Use it to decide what to offer instead of guessing from the ownership and sharing fields.

Example:

true

__groups
string[] | null

Groups the template is shared with. Everyone in them may use it, and may change it as well where __shareEdit says so.

__id
string | null

Identifier of the template.

Example:

"acc6bd04-8165-45b5-a3e8-b4cee54c6b90"

__organization
string | null

Organization the template was created in. It is what the template is counted against when the subscription allowance is worked out.

__owner
string | null

User the template belongs to. A template stored without an owner is one everybody in the tenant may use.

__shared
boolean

Whether the template reached the calling user through a share rather than being their own.

Example:

false

__shareEdit
boolean | null

Whether the users and groups the template is shared with may change it rather than only use it.

Example:

false

__users
string[] | null

Users the template is shared with directly.

attachments
object[] | null

Files the template keeps next to its main file: the attachments pre-filled into the documents created from the template, and the source files a merged main file was assembled from, which are marked merged. Like file, each of them is a file the template keeps for itself alone, and whoever may use the template may read them.

bulkMapping
object[] | null

Column mapping kept for mass sending from this template - which column of the uploaded file fills which of the template's own fields - so that the next mass send can be pre-filled. It is stored and returned as given.

category
string | null

Free-text label grouping templates in the template list. Any templates carrying the same label are shown together; there is no fixed vocabulary.

Example:

"Contracts"

definitionType
string | null

Kind of document the template produces, from the same set as a document's own definition type: ext for one built on an uploaded file, edoc for one created inside the system.

Example:

"ext"

documentCategory
string | null

Document category pre-filled into the documents created from the template, normally one the documentCategories setting offers. It is not checked against that setting, so it stays as stored even once the setting no longer offers it. It has nothing to do with category, which groups the templates in the template list.

Example:

"Contract"

documentFolder
object | null

Folder the documents created from the template are saved into.

documentNameFormat
object | null

How the documents created from the template are named. The name itself is put together by the client creating the document; the template only keeps the format.

documentType
string | null

Metadata definition the documents created from this template are filed under.

Example:

"d_default"

documentValues
object[] | null

Values of the metadata definition's fields pre-filled into the documents created from the template, at most one per field. They are checked against the definition only when a document is created.

file
string | null

Document the template is built on, held as the hash of a stored file. On the way in it may equally be the file's content inline as base64, which is then stored and replaced by the resulting hash.

fileMerge
object[] | null

Source files the main file was assembled from by merging, in merge order, together with the page range each of them occupies. It is recorded by the server when files are merged into the main file, extended when further files are appended, and cleared once the main file is replaced; a value sent in is ignored, and an export leaves it out together with the source files.

isLocked
boolean | null

Whether the template is to be used exactly as it stands. Preparing a transaction from a locked template offers no way to add, move or reassign its fields and recipients - they are used as the template has them.

Example:

false

name
string | null

Name of the template, as shown in the template list and wherever a template is picked.

Example:

"NDA for new suppliers"

sequential
boolean | null

Whether the recipients prepared on the template act one after another rather than all at the same time. Where the tenant does not let that order be chosen per document, a transaction started from the template has to keep this value.

Example:

true

shareSettings
object | null

Share settings prepared on the template - protections, expiration, reminders and what the recipients are allowed to do - applied to a transaction started from it.

signatureProvider
enum<string> | null

Signature provider pre-selected for the documents created from the template - the trust service that will produce their signatures. Whether the provider may be used is checked only when a document created from the template is signed or sent for signing.

Available options:
null,
datasure,
emdha,
internal,
uaePassSign,
icaQualified,
icaSwStore
Example:

"internal"

signatureType
string | null

Kind of signature the documents created from this template start with, from the same set as a document's own: signature for a signature proper, image for a drawn or uploaded one.

Example:

"signature"

signEntities
object[] | null

Recipient roles prepared on the template. Each one stands for a participant that is only named when a transaction is started, and carries what is asked of them - the purpose they act for, their place in the order and the protections they have to pass.

signFields
object[] | null

Fields placed in the document - signatures, texts, images - each with its page and position and bound to one of the recipient roles. A field arriving without an identifier is given one when the template is saved, and two fields may not share it.

signTemplate
string | null

Free-text field carried over from older template records. It is stored and returned unchanged.

tags
object | null

Tags pre-filled into the documents created from the template, in the shape a document takes them. The template only keeps them: they are put on a document by the client creating it, and the rights to tags are checked only then - a document gets no tags of a kind the user creating it may not set.

term
object | null

Contract term pre-filled into the documents created from the template - its expiration reminders, renewal and notice terms. It holds no dates: each document's term is worked out from the document's own expiration date, and the term is validated against it only when a document is created.

thumbnail
string | null

Preview image of the template's document, held as the hash of a stored file. It is produced by the server from that document; a value sent in is ignored.

tsaType
enum<string> | null

Trusted timestamps pre-selected for the documents created from the template - none, one embedded in each signature, a standalone document timestamp, or both.

Available options:
null,
none,
signatureOnly,
standaloneOnly,
standaloneAndSignature
Example:

"signatureOnly"

type
string | null

Label telling a template that carries a prepared signing process (sign) from one that only supplies a document to start from (doc). It is stored as sent - what a template can actually do follows from its recipients and fields.

Example:

"sign"