Download a document

Downloads the raw document image. The expires and sig query parameters are required — use the signed URLs returned by the list documents endpoint.

Authentication

X-API-Keystring

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

Path parameters

session_idstringRequired

Session ID (ses_*).

doc_typeenumRequired
Document type to download.
Allowed values:

Query parameters

expiresintegerRequired

URL expiration timestamp (Unix epoch seconds).

sigstringRequired

HMAC-SHA256 signature for URL verification.

Response

Raw document binary.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error