Skip to main content
Generate a draft's thumbnail

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"

Body

application/json
timeout
integer

How long to wait for the thumbnail, in milliseconds. Once it elapses the call answers without one; the rendering is not cancelled and still stores its result on the draft, so the thumbnail can be collected by reading the draft afterwards. Left out, it behaves as zero - the call returns straight away and the thumbnail is always collected later.

Required range: x >= 0
Example:

2000

Response

Returns the stored thumbnail and the draft's new version, or an empty result when the wait was cut short by timeout.

id
string

Value the request produced: the identifier of the object it created or acted upon, or - on the endpoints that issue one - the token it granted.

Example:

"e58cc1acbba3cd8056ce6adb44d46a11a113170e884509c179701270b915b59b"

version
integer

Current version of the record. Send it back with the next update so a concurrent change is not overwritten silently.

Example:

3