# Upload an attachment

Uploads a file to be used as a message attachment.
The response includes an attachment ID to reference when sending messages.

Endpoint: POST /messages/attachments/upload
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)
    Unique identifier of the conversation.

  - `accommodation` (string, required)
    Unique identifier of the property.

  - `file_size` (integer, required)
    Size of the file in bytes.

  - `file_name` (string, required)
    Original file name including extension.

  - `file_type` (string, required)
    MIME type of the file.

  - `file_content` (string, required)
    Base64-encoded content of the file.


