# Send a message

Sends a message within a conversation. The message body supports plain text.
Optionally, attach a file by referencing a previously uploaded attachment ID.

Endpoint: POST /messages/send
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.

  - `content` (string, required)
    The message text to send.

  - `attachments` (array)
    Optional list of attachment IDs, if sending one or more files.

## Response 200 fields (application/json):

  - `request_id` (string)
    Unique identifier for this request. Provide this ID when contacting support.

  - `data` (object)

  - `data.message` (string)
    Unique identifier for the sent message.


