About this endpoint
What it does
Generates a PNG preview from an uploaded file and returns the resulting image as a binary stream for download. The request uploads a source file and can optionally include a width query parameter to control the preview width.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| width | Integer | No | Preview width in pixels. Minimum value: 0. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Binary file input. Supported document, image, video, or archive file. |
Response
Returns a binary response body containing the generated PNG preview for download. The output schema is a single binary string, so the response is not a JSON object and does not include named fields.