Get Thumbnail binary


This request returns the binary of an attachment thumbnail.
The attachment objects that are returned from the API can have thumbnails, the flag hasThumbnail is set to true.
To receive the contents of an thumbnail this API call can be used.
A thumbnail is a jpeg image.

Thumbnail can also be loaded directly from the Communication API calls by setting the flag include=attachments,thumbnails.

Resource

GET /attachments/<OID>/binary?only_thumbnail

Where <OID> is the object ID of the attachment.

Parameters

Name Type Description

only_thumbnail

Add this parameter to only load the thumbnail of this attachment.

Payload

None

Response

The attachment thumbnail binary contents. The Content-Type and Content-Disposition headers are set to determine the mime-type and file name.

Context

Authorization

User

Errors

Example

Request
GET https://xelion.nl/api/v1/master/attachments/11235813/binary?only_thumbnail
Response Headers

Content-Type: image/png
Content-Disposition: attachment; filename=image.png

Response Body

The thumbnail binary contents