Skip to main content
Get the metadata definition of a shared document

Query Parameters

otp
string

Authorization password for the share token. Required if the share is protected.

Example:

"553827"

shareToken
string
required

Share token used to access the shared resource.

Minimum string length: 1
Pattern: ^[A-Za-z0-9._-]+$
Example:

"cir_82c5fa30d26bc.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"

tenant
string

Tenant the share belongs to. It only has to be given when neither the share token nor the address the request arrives on says which one it is.

Pattern: ^[a-z0-9]+$
Example:

"default"

Response

Returns the metadata definition of the shared document.

name
string
required

Identifier of the document type. It is what documents created from the definition carry as their type, the suffix of the per-type read_ and edit_ rights, and the stem of the definition's translation keys.

Example:

"d_default"

backendHtmlRendering
boolean | null

Whether the HTML of a generated document is rendered on the server. Switched off, the client renders it instead, and field formulas are left to the client as well.

barcode
string | null
barcodeType
string | null

Symbology of the barcode generated into documents of this type. Left empty, no barcode is produced.

Example:

"qrcode"

category
string | null

Group the document type is filed under when a user picks what to create, so related types are offered together.

Example:

"Contracts"

composePreview
boolean | null

Whether composing a document of this type ends with a preview step before it is sent or signed.

contentFields
string[] | null

Fields whose text makes up the searchable content of documents of this type. The server derives the list from the isFulltext flag of fields, so a submitted value is overwritten.

Example:
contextAttachments
string | null

Where the attachment area sits while a document is composed — aside in the side panel, top above the form, bottom below it.

Example:

"bottom"

contextFileChooser
boolean | null

Whether the folder and file chooser is offered inside the compose form itself rather than in its usual place.

defaultMode
string | null

Compose view that opens first when both formMode and inlineMode are available — formMode or inlineMode.

Example:

"formMode"

definitionSkin
string | null
definitionType
string[] | null

Kinds of document the definition can produce: edoc for a document generated from the definition's own template and form, ext for one built around an uploaded file. At least one has to be listed.

Example:
description
string | null

Description of the document type, maintained by administrators as rich text.

Example:

"Standard contract for external partners."

detectSignFields
boolean | null

Whether signature fields are looked for in the uploaded file by default. A request that does not say either way follows this flag.

displayName
object[] | null

Localized names of the document type. With no entry for the reader's language the type falls back to its translation key.

dualMode
boolean | null
embedDocIdOnSign
boolean | null

Whether the first signature on a document of this type has to carry an annotation with the document's identifier. The signature request is refused when it does not.

expertMode
boolean | null

Whether administrators may edit the definition's HTML template directly instead of only through the visual form editor.

fields
object[] | null

Metadata schema of the document type — every field its documents carry, with its kind, its validation and where it is shown. The kinds also decide how the values are indexed and searched.

form
object[] | null

Layout of the metadata form: one entry per section, each naming the fields it shows and how wide they are.

formMode
boolean | null

Whether the classic form view is offered for composing documents of this type. It cannot be turned off together with inlineMode.

formulaFallback
boolean | null

Whether field formulas are left to the client instead of being resolved on the server. They are left to it in any case when backendHtmlRendering is off.

hasStrictFolderPlacement
boolean | null

Whether documents of this type are filed where the type dictates. A create request that names a target folder is then refused.

htmlFallback
boolean | null

Whether a failed server-side rendering is tolerated and the HTML left to the client. Without it the whole operation fails instead.

inlineMode
boolean | null

Whether the inline view — the rendered document with its fields editable in place — is offered for composing documents of this type.

inlineStyle
string | null

Stylesheet placed into the compose and inline views of this document type. It is taken as it stands, so the selectors it uses decide what it reaches.

Example:

".tpage-part { font-size: 12px; }"

isPrivateByDefault
boolean | null

Whether documents of this type start out private, invisible to everybody the creator does not share them with. A creator who belongs to an organization gets a private document regardless.

language
string | null

Language the document type is authored in. Its documents keep it, and it decides which of the localized labels administrators edit.

Example:

"en"

mobileFriendly
boolean | null
organization
string[] | null

Organizations whose members may use the document type. Somebody inside an organization reaches it only when their organization is listed, while a user outside every organization is not restricted by it; a system definition is available either way.

Example:
previewMode
string | null

How a document of this type is presented in the preview pane. normal shows the document itself, list shows its metadata as a read-only form for as long as the document is unsigned.

Example:

"normal"

sectionMode
boolean | null

Whether the metadata form is broken into sections the user steps through instead of one form.

showStepNumber
boolean | null

Whether each section heading is numbered. It only means anything together with sectionMode.

signType
string | null

Signature kind documents of this type fall back to: image for a drawn or uploaded signature image, signature for a cryptographic signature made with a token or a card. It settles the kind only when neither the document nor the signature request does.

Example:

"image"

supportsBarcode
boolean | null

Whether the compose screen offers the barcode of the document for this type.

supportsSignature
boolean | null
system
boolean | null

Whether the document type is a built-in one. Everybody may see and use it, whatever their organization and their per-type rights.

template
object | null

HTML a generated document is built from, split into the header, the body and the footer.

templateFile
string | null

Hash of an uploaded file every new document of this type starts from. The file must not belong to anything else yet — it is claimed by the definition on save.

Example:

"5gxo31ldfut9ljmnhdb2oxvajf7qndd4vgamt5sla8iwxie0tvtsgu6ksrfpr3e4"

thumbnails
string | null

Hash of the picture shown on the document type's tile when a user picks what to create. The server renders it from the thumbnail HTML sent along with the definition.

Example:

"qrfn0kr47ftdnrqz0cpuiglwh1kdo0r7ohei3l4ajgmfa2j7nhfeawz5oyh170pc"

workflow
string | null

Name of the workflow definition driving documents of this type. A document type runs exactly one workflow.

Example:

"wf_archive"