Skip to main content
Seal 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 sealing. It guards the seal 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 seal.

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

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

certificate
boolean
default:false

Applies the organization's own seal to the document, attesting on the organization's behalf that this is the file it stands behind. Depending on the tenant's timestamping configuration the seal may carry a trusted timestamp of its own. At least one of certificate and timestamp must be provided.

Example:

false

sealProvider
string

Name of the seal provider that produces the seal, one of the seal providers available to the caller. Without it the caller's default seal provider is used.

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

"internal"

timestamp
boolean
default:false

Adds a standalone trusted timestamp from a timestamping authority, proving the file existed in this form at that moment. It can be added on its own, without a seal. At least one of certificate and timestamp must be provided.

Example:

false

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"

Response

The document was sealed as requested.

status
string

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

Example:

"SUCCESS"