Skip to main content
Retrieve a draft

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

Unique identifier of a draft document in the system.

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

"8b312068-ecdf-4fa6-8f13-c6183da85f43"

Response

Returns the draft.

alerts
object[] | null

Reminders configured on the record, each notifying its recipient once its trigger time has passed.

barcode
string | null

Hash of the stored barcode image rendered for the document, in the barcode format declared by its metadata definition.

Example:

"g153bn7qeo63b5kzec7q9cvnxnd03n34d4zkfyjy8m728eqdznf3htxm8mh14d48"

counterId
string | null

Value taken from the numbering series configured for the document's metadata definition, and substituted into the document's own numbering fields.

Example:

"TEF_2016_aa_001"

createDate
string<date-time> | null

Date and time when the draft was created.

createName
object | null

User who created the draft. A draft is reachable only by that user.

customFields
object[] | null

Free-form key/value metadata attached to the document by the client, alongside the fields its metadata definition declares. The serialized set is limited to 10 KiB.

Maximum array length: 100
definitionLanguage
string | null

Language declared on the metadata definition the draft was created from.

Example:

"en"

definitionType
enum<string>

Kind of definition behind the draft and, with it, the way it is processed - ext for a document whose uploaded main file is the document itself, edoc for one generated from a definition template.

Available options:
edoc,
ext
documentCategory
string | null

Category the document is filed under, used for filtering and reporting. The available categories come from the documentCategories setting.

Example:

"Contract"

documentId
string | null

Identifier of the document the draft was opened from. It stays empty for a draft that is preparing a document that does not exist yet.

Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

documentTitle
string | null

Title the document being prepared carries so far.

Example:

"Contract Agreement"

draftType
enum<string>

What the draft is preparing: a new document, an edit or rework of an existing one, a copy of one, a signing setup, or the fields a recipient is filling in.

Available options:
clone,
create,
edit,
internal,
rework,
sign,
signClone,
signCreate,
signFill
Example:

"create"

expiresOn
string<date-time> | null

Expiration date the document being prepared is to get.

Example:

"2026-12-31T00:00:00.000Z"

file
object[] | null

Files attached to the record next to its main file.

folder
object

Where the document is to be filed once it is created, given separately for the shared placement and the caller's own.

html
string | null

Rendered HTML body of a generated (edoc) document.

id
string

Identifier of the draft, the handle every further call about it uses.

Example:

"8b312068-ecdf-4fa6-8f13-c6183da85f43"

isFolder
boolean | null
isSigned
boolean | null

Whether the main file carries at least one signature, including signatures that were already present in an uploaded file.

lastModified
string<date-time> | null
lastUpdated
string<date-time> | null

Date and time when the draft was last saved.

organization
string | null

Identifier of the organization the draft belongs to, taken from its creator. It is absent for a creator outside any organization, and it governs who may see the draft's attachments.

Example:

"d0a72e51-728e-4a1d-9a5c-13796122b6f8"

originalSignFields
object[] | null

Sign fields that were already placed on the source document when the draft was opened, kept next to the fields the draft itself defines.

pdfFile
object | null

Main file of the document, the one shown in the viewer. Despite the field name it does not have to be a PDF.

readBy
string[] | null
revision
integer | null

Revision number the document is at. A draft opened from an existing document carries that document's number, while a draft the platform sets up to render a generated document carries the number the document is about to receive.

Example:

3

rights
object | null
sequential
boolean | null

Whether the prepared recipients are meant to act one round after another, in the order recorded on each of them, rather than all at the same time.

shareSettings
object | null

Share configuration prepared for the document - recipient permissions, protection factors, expiration and reminders.

showBarcode
boolean | null

Whether the document's barcode is displayed to the user.

signEntities
object[] | null

Recipients and recipient roles prepared to act on the document, with the round, grouping and quorum each of them acts under.

signFields
object[] | null

Fields placed on the pages of the main file for the document's participants to fill - signatures, initials, stamps, text inputs and other annotations. Fields the source document already carried are kept in originalSignFields instead.

submittedFiles
object[] | null

Files uploaded into the document by its participants through its submitted-file fields.

tags
object

Tags the document is to carry once it is created, split into the shared ones and the caller's private ones.

term
object | null

Expiration reminders, contract renewal or non-fixed notice terms the document being prepared is to get. Nothing acts on them while they sit on a draft - reminders fire and renewals happen only on the document.

termType
enum<string> | null

Kind of term of the document the draft was set up from. Only a draft the platform sets up from an existing document carries it; a draft saved by a client never does.

  • fixed_term: The document expires on a set date and its contract is renewed, automatically or by hand.
  • expiry_only: The document expires on a set date and nothing renews it.
  • non_fixed_term: The contract runs until it is terminated. The document expires only once a termination has started, the notice period after it.
Available options:
fixed_term,
expiry_only,
non_fixed_term,
null
thumbnails
string | null

Hash of the stored preview image rendered from the draft's main file.

Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

tika
object | null
tikaStatus
string | null
usePdfA
boolean | null

Whether the document's main file is kept PDF/A compliant when it is signed or re-rendered.

version
number

Version the draft currently stands at, the value a draft update has to carry so it cannot overwrite a newer state.

workflow
object
{key}
any

Additional properties