# Download a message attachment

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

Endpoint: POST /messages/attachments/download
Version: 3.1
Security: BearerAuth

## Header parameters:

  - `X-Affiliate-Id` (integer, required)
    Include here your Affiliate identifier number

## Request fields (application/json):

  - `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 fields (application/json):

  - `request_id` (string)
    A unique ID for this request. Please include this when contacting support.

  - `data` (object)

  - `data.conversation` (string)
    The ID of the conversation the file belongs to.

  - `data.file_content` (string)
    The base64-encoded content of the attachment.


