Skip to main content
Sign a document

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

version
integer
required

Version of the document the caller is signing. It guards the signature from being applied to content the caller has not seen.

Required range: x > 0
Example:

6

Body

application/json
id
string
required

Identifier of the document to sign.

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

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

signatures
object[]
required

Signatures to place, one entry per sign field being filled.

Minimum array length: 1
annotations
object[]

Text to write into the document in the same operation, one entry per annotation field being filled.

draftId
string | null

Draft the signing was prepared from, which is removed once the document has been signed.

Pattern: ^[A-Za-z0-9_-]+$
Example:

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

images
object[]

Images to embed into the document in the same operation, one entry per image field being filled.

signatureProvider
enum<string>

Signature provider to use for the signing process.

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

"internal"

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
timezone
string

Timezone the signing times drawn into the visual signatures are rendered in.

Example:

"Europe/Prague"

tsaServer
string | null

Name of the Time Stamping Authority server to request the timestamp from, as configured in settings. When left out, the account's default server is used. Naming one requires the set_tsa right; leaving it out does not. Rejected when no timestamp is being requested.

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

"primary"

useTsa
boolean
default:false

Requests the trusted timestamps the account's timestamp type configures for this signature, so the signing time is provable independently of the signer. They come from the server named in tsaServer, or from the account's default one.

Example:

false

Response

The document was signed.

status
string

Outcome of the operation, reported as a status type constant.

Example:

"SUCCESS"