Skip to content

Fetch latest messages

Request

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.

Security
BearerAuth
Headers
X-Affiliate-Idintegerrequired

Include here your Affiliate identifier number

curl -i -X POST \
  https://demandapi.booking.com/3.1/messages/latest \
  -H 'Authorization: Bearer <YOUR_string_HERE>' \
  -H 'X-Affiliate-Id: 0'

Responses

Latest messages fetched successfully.

Bodyapplication/json
request_idstring

Unique identifier for this request. Provide this ID when contacting support.

dataobject
Response
{ "request_id": "0248d85a-17e0-44b3-a37c-7d4b5c03f58b", "data": { "messages": [] } }