CloudPDF
DocsPricing
Start building

Get thumbnail

GET/v1/tenants/{tenantId}/documents/{id}/thumbnailv3.0.0-next.9

Fetch the warmed dashboard-tile render for a document.

Authentication#

Any one of these credentials is accepted.

API token

The deployment's static root credential (CLOUDPDF_API_AUTH_TOKENS), valid on every surface.

Tenant token

Delegated tenant JWT, valid only under its own /v1/tenants/{tenantId}/ subtree — the path tenant must equal the token's tenant_id. Doc-scoped viewer tokens are rejected on every admin route.

Required scopedocs.read

Parameters#

tenantIdpathstringrequired
idpathstringrequired

SDK examples#

The selected SDK is remembered across the API reference. Values are examples; replace them with identifiers and input from your application.

import { CloudPDFClient } from "@cloudpdf/sdk";

const client = new CloudPDFClient({
  baseUrl: "https://yourhost.com/path/to/api",
  token: "<token>",
});

await client.documents.thumbnail({
  tenantId: "tenantId",
  id: "id"
});

Responses#

200OK
image/webpstring<binary>
image/pngstring<binary>
404Not found
application/jsonDocumentsThumbnailResponse
errorobject
codestring
messagestring
statestring
defaultError
application/jsonAdminErrorPayload
errorobject
codestring
messagestring