Skip to main content
GET
/
documents
/
{documentId}
/
preview
/
pdf
/
temporarylink
Python SDK
link = client.documents.previews.retrieve_pdf_link(id=123)
{
  "temporaryLink": "<string>",
  "expirationTime": 1519862400000
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Headers

cdf-version
string

cdf version header. Use this to specify the requested CDF release.

Example:

"alpha"

Path Parameters

documentId
integer
required

Internal ID for document to preview

Response

OK

A temporary link to download a preview of the document. The link is reachable without additional authentication details for a limited time.

expirationTime
integer<int64>
required

The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.

Required range: x >= 0
Example:

1519862400000

Last modified on April 23, 2026