Skip to main content

Download one version of a document's file.

GET/api/v1/documents/{document_id}/versions/{version_id}/contentdocuments:download

302 to a short-lived signed URL of the file this version names. Archived versions are downloadable. expires_in_seconds and file_name as for the current file.

Scopedocuments:download
AsynchronousNo
MCP toolget_document_version_content
Portal permissionsdownload_document_files, download_original_documents, download_document_versions

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
version_idpathstringRequired
expires_in_secondsqueryinteger or nullOptionalHow long the URL works, 60 to 604800 seconds. Default 3600.
file_namequerystring or nullOptionalThe name the file saves under, sent as the Content-Disposition of the download. Its extension is the stored file's, as the Portal's download name is.
Docwize-Versionheaderstring (date)Optional

Responses​

StatusDescriptionBody
302Redirect to a signed URL.
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.