Skip to main content

Get one version of a document.

GET/api/v1/documents/{document_id}/versions/{version_id}documents:read

A version that does not exist for the document is 404; the document itself is 403 or 404 as for any document read.

Scopedocuments:read
AsynchronousNo
MCP toolget_document_version
Portal permissionsview_document_versions, view_document_version_history

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
version_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json Version
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​

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired

Version​

FieldTypeRequiredDescription
content_typestring or nullRequired
created_atstring (date-time) or nullRequired
created_byUserRef or nullRequiredWho stored the file; null when not recorded (archived files).
file_hashstring or nullRequiredThe hash the Portal stored for the file's content; null when none was recorded.
file_namestring or nullRequired
has_pdfbooleanRequiredWhether a PDF rendition of this file is ready (an Office file converts on demand, so false only means not yet).
is_currentbooleanRequired
is_indexedbooleanRequiredWhether the file's text has been indexed for search.
page_countinteger or nullRequiredThe pages the file has, once the Portal has counted them; null before.
reasonstring or nullRequiredThe description recorded when the file was replaced; null for the current file.
size_bytesstring or nullRequired
version_idstringRequired