# Messages

Provides endpoints for two-way post-booking communication between guests and properties. </br></br>Use these endpoints to send and retrieve messages, exchange images, and check conversation details.

## Send a message

 - [POST /messages/send](https://developers.booking.com/demand/docs/open-api/demand-api/messages/sendmessage.md): Sends a message within a conversation. The message body supports plain text.
Optionally, attach a file by referencing a previously uploaded attachment ID.

## Fetch latest messages

 - [POST /messages/latest](https://developers.booking.com/demand/docs/open-api/demand-api/messages/fetchlatestmessages.md): Retrieves up to 100 of the most recent messages including messages from both property and guest.

- Messages are returned in reverse chronological order (newest first).
- Use this endpoint to sync message threads or poll for updates.

Important:  To retrieve the latest messages, send an empty POST request.  Any content in the request body will be ignored.

## Confirm message receipt

 - [POST /messages/latest/confirm](https://developers.booking.com/demand/docs/open-api/demand-api/messages/confirmmessagereceipt.md): Confirms receipt of specified messages.
This confirmation is required before receiving new messages from the POST /messages/latest endpoint.

