Skip to main content
Start two-step file signing of 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 against. It guards the signature from being prepared over 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"

signatureProvider
enum<string>
required

Where the signer's private key lives, which decides how the prepared files are to be signed.

Available options:
icaQualified,
icaSwStore
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.

certificateHash
string

Signing certificate the prepared files are certified for, named among the certificates stored on the caller's own account.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

images
object[]

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

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"

Response

Returns the signing session, its expiry and the hash of every file the client has to sign.

files
object[]
required

One entry for every prepared file of the document that awaits the signer's signature. A prepared file that received only annotations or images carries no signature of the signer, is finalized on the server and is not listed here.

sessionExpiration
string<date-time>
required

Moment at which the signing session and everything prepared in it expire.

sessionId
string
required

Identifier of the short-lived signing session that holds the whole prepared state until the signature comes back.

Example:

"sign:session:9f2c4e1b7a0d63855c1e8f04b2d97a63e5108c4fbd26a7391e0c58d4a6b7f213"