Preview a document page as JPEG

Returns a JPEG preview of a single page. For PDFs, the page is rendered server-side at 200 DPI via PyMuPDF. For images, returns the original bytes. Auth is via HMAC signature (same as the download endpoint) — no API key or cookie required.

Authentication

X-API-Keystring

Organization API key. Keys are prefixed with vk_live_ (production) or vk_sandbox_ (sandbox).

Path parameters

document_idstringRequired

Document ID (doc_*).

Query parameters

pageintegerOptional1-20Defaults to 1

1-indexed page number. For PDFs, renders that page as JPEG via server-side conversion. Ignored for images.

expiresintegerRequired

HMAC expiry timestamp (Unix epoch seconds).

sigstringRequired

HMAC-SHA256 signature for URL verification.

Response

JPEG preview of the requested page.

Errors

403
Forbidden Error
404
Not Found Error
410
Gone Error