# Download attachment

Use this endpoint to retrieve a file that was attached to a message. The response includes the file in a base64-encoded format.

Endpoint: POST /messages/attachments/download
Version: 3.2-Beta
Security: BearerAuth

## Header parameters:

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

## Request fields (application/json):

  - `conversation` (string)
    The unique identifier of the conversation

  - `accommodation` (string)
    The unique identifier of the property

  - `attachment` (string)
    The unique identifier of the attachment

## Response 200 fields (application/json):

  - `request_id` (string)
    Uniquely identifies the request. Please provide this identifier when contacting support.

  - `data` (object)

  - `data.conversation` (string)
    The unique identifier of the conversation

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

  - `data.attachment` (string)
    The unique identifier of the attachment


