# Retrieve a conversation

Retrieves a conversation accessible to the authenticated user, including message history and participants.

Endpoint: POST /messages/conversations
Version: 3.1
Security: BearerAuth

## Header parameters:

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

## Request fields (application/json):

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

## Response 200 fields (application/json):

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

  - `data` (object)

  - `data.conversation` (object)

  - `data.conversation.id` (string)
    Unique identifier of the conversation.

  - `data.conversation.reservation` (string)
    Unique identifier of the reservation.

  - `data.conversation.messages` (array)
    List of messages in the conversation.

  - `data.conversation.messages.id` (string)
    Unique identifier of the message.

  - `data.conversation.messages.sender` (string)
    Unique identifier of the sender.

  - `data.conversation.messages.reply_to` (string)
    Message ID this message replies to (if applicable).

  - `data.conversation.messages.content` (string)
    Message text content.

  - `data.conversation.messages.attachments` (array)

  - `data.conversation.messages.timestamp` (string)
    Timestamp in ISO 8601 format (UTC) when the message was sent.

  - `data.conversation.participants` (array)
    List of participants in the conversation.

  - `data.conversation.participants.id` (string)
    Unique identifier of the participant.

  - `data.conversation.participants.metadata` (object)
    Additional participant metadata.


