Skip to main content

Get a signed download URL for one version.

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

The version's short-lived signed URL, with its content type and size. expires_in_seconds and file_name as for the current file.

Scopedocuments:download
AsynchronousNo
MCP toolget_document_version_download_url
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
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json ContentURL
304Not modified (If-None-Match matched the ETag).
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.

Schemas​

ContentURL​

FieldTypeRequiredDescription
content_typestring or nullRequired
expires_atstring (date-time) or nullRequired
size_bytesstring or nullRequired
urlstringRequired