Get what the 3D viewer shows for a document.
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.
| |
|---|
| Scope | documents:read |
| Asynchronous | No |
| MCP tool | get_document_model_viewer |
| Portal permissions | view_model_viewer |
Parameters
| Name | In | Type | Required | Description |
|---|
document_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
ModelViewer
| Field | Type | Required | Description |
|---|
configuration_required | boolean | Required | Whether the viewer must be configured before it can open this model. |
document_id | string | Required | |
extension | string or null | Required | The model file's extension. |
max_bytes | string or null | Required | The largest model the viewer opens. |
message | string or null | Required | What the viewer tells the person while a model is prepared or when it cannot open it. |
progress | integer or null | Required | 0 to 100 while a model is being prepared. |
renderer | string or null | Required | native_ifc, native_three or autodesk for a model; null otherwise. |
source_file_hash | string or null | Required | The revision of the model file a preview and the model notes are tied to. |
tier | string or null | Required | |
viewer | string | Required | pdf, model3d, model3d_pending or download. |