Retrieve a temporary link to a PDF preview of a document

This endpoint works similar as the normal preview endpoint except it returns a short-lived temporary link to download the rendered preview instead of returning the binary data.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
path Parameters
documentId
required
integer

Internal ID for document to preview

header Parameters
cdf-version
string

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

Example: alpha
Responses
200

OK

400

The response for a failed request.

401

The response for a failed request.

422

The response for a failed request.

get/documents/{documentId}/preview/pdf/temporarylink
Request samples
link = client.documents.previews.retrieve_pdf_link(id=123)
Response samples
application/json
{
  • "temporaryLink": "string",
  • "expirationTime": 1519862400000
}