Skip to main content

Get what the 3D viewer shows for a document.

GET/api/v1/documents/{document_id}/model-viewerdocuments:read

Needs View Model Viewer. viewer says what opens the document: pdf, model3d (a model), model3d_pending (a model still being prepared, with progress and message) or download. For a model it gives the renderer, the file extension and tier, whether the viewer still needs configuring, the size the viewer takes (max_bytes) and source_file_hash, the revision a preview and the model notes are tied to. Needs read access to the document.

Scopedocuments:read
AsynchronousNo
MCP toolget_document_model_viewer
Portal permissionsview_model_viewer

Parameters​

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

Responses​

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

ModelViewer​

FieldTypeRequiredDescription
configuration_requiredbooleanRequiredWhether the viewer must be configured before it can open this model.
document_idstringRequired
extensionstring or nullRequiredThe model file's extension.
max_bytesstring or nullRequiredThe largest model the viewer opens.
messagestring or nullRequiredWhat the viewer tells the person while a model is prepared or when it cannot open it.
progressinteger or nullRequired0 to 100 while a model is being prepared.
rendererstring or nullRequirednative_ifc, native_three or autodesk for a model; null otherwise.
source_file_hashstring or nullRequiredThe revision of the model file a preview and the model notes are tied to.
tierstring or nullRequired
viewerstringRequiredpdf, model3d, model3d_pending or download.