action exavault_get_preview_image {
label: "Preview a file"
description: "Returns a resized image of the specified document for supported file types.\n\nImage data returned is encoded in base64 format and can be viewed using the `
` element. \n\n```
```\n\n**Notes:**\n- Supported files types are `'jpg'`, `'jpeg'`, `'gif'`, `'png'`, `'bmp'`, `'pdf'`, `'psd'`, `'doc'`\n"
provider: exavault
method: GET
path: "/resources/preview"
encoding: json
input: {
type: "object"
properties: {
"ev-access-token": {
type: "string"
}
"ev-api-key": {
type: "string"
}
height: {
type: "integer"
format: "int32"
}
page: {
type: "integer"
format: "int32"
}
resource: {
type: "string"
}
size: {
type: "string"
enum: ["small", "medium", "large"]
}
width: {
type: "integer"
format: "int32"
}
}
required: ["ev-access-token", "ev-api-key", "resource", "size"]
additionalProperties: false
}
output: {
type: "object"
description: "Response object for preview file"
properties: {
data: {
type: "object"
description: "Object with preview image properties."
properties: {
attributes: {
type: "object"
properties: {
image: {
type: "string"
description: "Binary image content, base64 encoded."
}
imageHash: {
type: "string"
description: "hash of the image."
}
pageCount: {
type: "integer"
format: "int32"
description: "Amount of pages available in the file. Used only for multipage documents."
}
size: {
type: "integer"
format: "int64"
description: "Size of the image in bytes."
}
}
}
id: {
type: "integer"
format: "int64"
}
type: {
type: "string"
}
}
}
responseStatus: {
type: "integer"
description: "HTTP Status Code"
}
}
}
}