---
title: "Download a message attachment"
method: POST
path: "/messages/attachments/download"
tags: ["Attachments"]
---

# Download a message attachment

`POST /messages/attachments/download`

Retrieves a file that was attached to a message. The response includes the file's content as a base64-encoded string.

## Headers

- `X-Affiliate-Id` integer, required

## Request body

- object
  - `conversation` string, required — The unique identifier of the conversation that contains the attachment.
  - `accommodation` string, required — The unique identifier of the property where the conversation occurred.
  - `attachment` string, required — The unique identifier of the attachment to download.

## Response `200`

Attachment successfully retrieved.

- object
  - `request_id` string — A unique ID for this request. Please include this when contacting support.
  - `data` object
    - `conversation` string — The ID of the conversation the file belongs to.
    - `file_content` string — The base64-encoded content of the attachment.

---

[API](https://skmtc.net/booking/apis/booking-com-demand-api.md) · [All operations](https://skmtc.net/booking/apis/booking-com-demand-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/booking/booking-com-demand-api/revisions/e5f3dccae7ca/schema)
