# Attachments

Provides endpoints for handling message attachments. </br></br>Use these endpoints to upload and download images shared within conversations.

## Upload an attachment

 - [POST /messages/attachments/upload](https://developers.booking.com/demand/docs/open-api/demand-api/attachments/uploadattachment.md): Uploads a file to be used as a message attachment.
The response includes an attachment ID to reference when sending messages.

## Download a message attachment

 - [POST /messages/attachments/download](https://developers.booking.com/demand/docs/open-api/demand-api/attachments/downloadmessageattachment.md): Retrieves a file that was attached to a message. The response includes the file's content as a base64-encoded string.

## Retrieve attachment metadata

 - [POST /messages/attachments/metadata](https://developers.booking.com/demand/docs/open-api/demand-api/attachments/getattachmentmetadata.md): Returns metadata for a file uploaded in a message, including its name, type, and size.

