Skip to main content
Send a document to its recipients

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.

Body

application/json
data
object[]
required

The recipients, one entry each: who the document goes to, what is asked of them, and how their access is guarded.

Required array length: 1 - 100 elements
id
string
required

Document to send out.

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

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

objectType
enum<string>
required

Kind of object being sent out.

Available options:
document
type
string
required

Document metadata definition identifier. This must match the metadata definition identifier of the document being shared.

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

"d_default"

annotations
object[]

Annotations the sender puts into the document while sending it out.

dateFormat
string | null

Format to show dates to the recipients in, written in Luxon tokens. The sender's own format is used when none is given, and the workspace's after that.

Example:

"DD/MM/YYYY"

draftId
string | null

Draft this sending was prepared in. It is thrown away once the document has gone out.

images
object[]

Images the sender places into the document while sending it out.

isPublicComment
boolean
default:false

Whether the message recorded with this sending is visible to recipients from outside the workspace, rather than being kept among its own users.

Example:

false

message
string

Message to all the recipients, delivered with the document. A message meant for one of them alone belongs on their own entry in data. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.

Maximum string length: 2000
Example:

"New client agreement to sign."

releaseDeletedTemplate
boolean
default:false

Whether a document bound to a locked template that has since been deleted is released from it, so that it can still be sent out: the binding is removed from the document and the recipients are added without the fields being checked against a template. It has no effect when templateId is sent, when the template the document is bound to still exists - the document is then checked against it as always - or on a share that places no fields, fills none and asks nobody to sign, approve or accept, which is never checked against a template.

Example:

false

returnUrl
string | null

Where a recipient is sent once they have done what was asked of them.

Example:

"https://example.com/thank-you"

sequential
boolean
default:false

Whether the recipients act one after another, in the order their entries carry, each step being notified only when its turn comes. Otherwise everybody is asked at once.

Example:

false

shareSettings
object | null

The settings the sender chose in the sharing dialog, kept on the document so that the next transaction can be started from them. They are a record only - what actually applies to each recipient is what their entry in data says.

signatureFields
object[]

Fields the recipients are to fill in - where each signature, annotation or file goes and who is to provide it. They replace the fields the document carried before.

signatureProvider
enum<string>

Signature provider to use for the signing process. Accepts both single-step providers and the two-step I.CA providers. When a two-step provider is selected, it is stored on the document for the recipients to sign with; the sharing user can't sign synchronously with it.

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

"internal"

signatures
object[]

Array of signature data to be applied to the document. Each signature defines the signature field ID, position, and other properties.

signatureType
enum<string>

Type of signature to apply. Options include "signature" (cryptographic signature with visual representation) or "image" (visual representation only).

Available options:
signature,
image
templateId
string | null

ID of the template with signFields.

timeFormat
string | null

Time format to use for all provided shares. Luxon tokens.

Example:

"hh:mm"

timezone
string

Timezone to use for embedded timestamps in the document.

Example:

"Europe/London"

useTsa
boolean
default:false

Should TSA be added for every signature?

Example:

false

Response

Returns the share records created, one per recipient.

allowedOAuths
string[]

Identity providers the recipient may prove themselves with, where the share is guarded by a sign-in with a trusted provider.

Example:
automaticReminder
object | null

How often the recipient is reminded of the action still outstanding, and from when. Absent where no reminders were arranged.

customActionName
string | null

Wording to put in front of the recipient in place of the standard name of the action. It changes nothing but the label - what the recipient is asked to do still follows shareType.

Example:

"Countersign"

dateFormat
string

Format the recipient is shown dates in.

Example:

"DD.MM.YYYY"

delegatedChainId
string

Identifier carried by every share in one chain of hand-overs, so that the whole chain can be followed back to the recipient it started with.

delegatedFrom
string

Share this one was handed over from, when a recipient passed their part on to somebody else.

fullname
string

Full name of the (external) recipient, if known. Used to pre-fill the recipient's name (e.g. in the signature field) instead of falling back to their email address.

isActive
boolean

Whether the share is still live. One that the sender has called off, or that was superseded when the recipient was changed, opens nothing any more.

isDelegated
boolean

Whether this recipient has handed their part over, which means the document is no longer waiting for them but for whoever they passed it to.

isMandatory
boolean

Whether the sharing operation counts as done only once this recipient has acted.

isPermanentViewToken
boolean

Whether this is the document's permanent public link rather than a share issued to a particular person. Such a link only lets the document be read, and answers without its workflow.

kycDocumentTypes
enum<string>[] | null

Identity documents the recipient may verify themselves with.

Available options:
idCard,
passport,
driverLicense,
residencePermit
kycExpectedData
object | null

Which of the recipient's identity details the verification has to find and match.

kycFactors
enum<string>[] | null

Checks the identity verification has to put the recipient through.

Available options:
idVerification,
livenessDetection,
selfieWithId
kycProviders
string[]

Verification providers the recipient may use, where the share is guarded by an identity check.

Example:
language
string

Language the recipient is addressed in, both in the notifications sent to them and in the view they are shown.

Example:

"en"

message
string

Message the sender wrote to the recipients of this sharing operation.

messageRead
boolean

Whether the recipient has marked that message as read.

nafathId
string

Nafath national identity the recipient has to prove, anonymized.

oauthFactors
object[]

Details the trusted identity provider has to report about the recipient before the share opens, with their values anonymized.

order
integer | null

Where this recipient stands in the order of acting, when the recipients of the sharing operation are to act one after another.

otpMail
string

Address the one-time password is sent to, anonymized.

otpPhone
string

Number the one-time password is sent to, anonymized.

passwordRequired
boolean

Whether the share currently holds a password the recipient has to supply before it opens. Every way of guarding a share ends in such a password, so for a one-time code, a sign-in with a trusted provider or an identity check this turns true only once the recipient has been through it.

privateMessage
string

Message written to this one recipient, as against the message addressed to all of them.

quorum
integer

How many of the recipients acting at this point have to act before the document moves on.

remindedOn
string<date-time>

When the recipient was last reminded of the action still outstanding.

returnUrl
string | null

Where the recipient is sent once they have done what was asked of them.

Example:

"https://example.com/thank-you"

rights
string[]

What this share allows beyond its purpose - printing the document, handing the action to somebody else, reading the document's metadata, uploading files.

Example:
sendAttachmentsOnComplete
boolean

Whether the document's attachments are sent to the recipient with the message that closes the sharing operation.

sequential
boolean

Whether this recipient's turn waits on the recipients before them, rather than everybody being asked at once. A share that only lets the document be read never waits, even where the rest of the sharing operation is ordered.

shareDate
string<date-time>

When the document was shared.

sharedBy
string

Username of the person who shared the document.

sharedFlags
string[]

What has happened to the document on this share so far - that the recipient has seen it, downloaded or printed it, or acted on it.

Example:
sharedObjectEsId
string

Identifier of the shared document.

sharedObjectEsType
string

Definition the shared document was created from.

sharedObjectType
string

Kind of object that was shared. Documents are the only kind so far.

Example:

"document"

sharedUsername
string

Username of the recipient, set only where the share was issued to a user of this workspace.

sharedWith
string[]

Who the share was issued to - the e-mail address of a recipient outside the workspace, otherwise the username of one inside it.

shareGroup
string

Identifier tying together every share created by one sharing operation.

shareId
string

Identifier of the share.

Example:

"5Ds8g5cB3a5JydtvXALu"

shareType
string

What the recipient is asked to do with the document - read it, edit it, sign it, accept, approve or review it, or carry out a workflow action. Once they have done so the share falls back to plain reading.

Example:

"sign"

timeFormat
string

Format the recipient is shown times in.

Example:

"HH:mm"

tokenGenerated
boolean

Whether the sender has ever taken this share's token out to pass it on themselves, instead of leaving it to the notification sent to the recipient. Once they have, the way the share is guarded can still be switched or corrected, but no longer lifted or replaced with a password.

validUntil
string<date-time>

When the share stops opening. Empty where its validity is not limited.