Skip to main content
POST
Create preview

Authorizations

Authorization
string
header
required

An API key from the dashboard, such as sk_live_…. It acts in its workspace.

Path Parameters

document_id
string
required

The document to preview.

Body

application/json
alias
string

An alias, such as latest; latest when neither this nor version is given.

version
integer<uint64>

A version, by number.

Required range: x >= 0

Response

Created

document_id
string
required

The document it previews.

expires_at
string
required

RFC 3339.

target
object
required

A version of a document: one by number, or an alias, which points at one and can move. A preview of a version never changes; a preview of an alias follows it.

token
string
required

The preview credential itself, for the document's events feed (?token=).

url
string
required

The preview page on rendermate.com; the credential rides in its fragment, so it never reaches a server's logs.