Get Attachment As A Binary


This request returns the attachment contents.

Starting from version 8.4, the attachments endpoing is available for administrators only.
Users can retrieve attachments from endpoints that specify the container object.
See the Change Log of version 8u4 for more information.

Resource

GET /attachments/<OID>/binary

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

Parameters

Name Type Description

only_thumbnail

Return the thumbnail of this attachment.

Payload

None

Response

The attachment binary contents. The Content-Type and Content-Disposition headers specify the mime-type and file name.

Context

Authorization

Administrator

Errors

Example

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

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

Response Body

The binary contents