Skip to content
Last updated

About the Messaging API Beta

The Messaging API acts as a communication bridge between travellers and accommodation partners, enabling structured communication through conversations associated with an accommodation and, where applicable, a reservation.


Messaging API pilot – Beta access

The Messaging API is currently available to selected partners as part of an early-access pilot.

  • The API is under active development and may change during the pilot.
  • Access is currently limited to selected pilot affiliate partners.
  • If you are not part of the pilot, you cannot access this API collection.
  • The documentation and API reference may be updated regularly.

Check the Changelog for the latest updates.

The Messaging API as an additional service

The Messaging API is an additional service to the Demand API that facilitates structured communication between guests and accommodation partners through conversations associated with an accommodation and, where applicable, a reservation.

It supports sending and retrieving messages, retrieving conversation history and exchanging file attachments.

Capabilities

FeatureDescription
Two-way messagingSend messages to an existing conversation and retrieve messages sent by the guest or accommodation partner.
Conversation contextAssociate messages with an accommodation and, where applicable, a reservation.
Conversation retrievalRetrieve a conversation using an accommodation ID together with either a conversation ID or a reservation ID.
Message synchronisationRetrieve the latest messages and confirm their receipt.
File attachmentsUpload files, include attachment IDs in messages, retrieve attachment metadata and download attachments.

Who is this for?

The Messaging API is intended for existing Demand API affiliate partners that want to integrate guest and accommodation communication into their own systems, on top of Demand API integrations.

Access to the Messaging API is currently limited to selected pilot affiliate partners.

How the Messaging API works

The Messaging API enables partners to:

✅ Send messages to existing conversations using /messages/send.

✅ Retrieve the most recent messages using /messages/latest.

✅ Confirm message receipt using /messages/latest/confirm.

✅ Retrieve a conversation using /messages/conversations.

✅ Upload and manage message attachments using the attachments endpoints.

For endpoints that target a specific conversation, provide the accommodation ID together with either a conversation ID or a reservation ID, as required by the endpoint.

Benefits of integrating the Messaging API

Integrating the Messaging API into your system can help you:

BenefitDescription
ScalabilityCentralise and automate guest communication so your teams can manage more conversations and reservations efficiently.
Improved guest experienceProvide timely and relevant communication throughout the post-booking journey, helping build trust and confidence.
More efficient customer serviceReduce avoidable customer service contacts by making booking information and accommodation communication available through your own systems.
Data and insightsUse structured messaging data, such as message timestamps and conversation history, to monitor communication workflows and identify opportunities for improvement.
Integrated partner servicesConnect messaging workflows with booking-management systems, CRM platforms, customer-service tools or other partner systems.

The communication flow

The Messaging API supports communication between accommodation partners and guests through existing conversations.

Partners can retrieve messages sent by the accommodation or guest, display them in their own systems and send replies through the API.

Accommodation to guest

Accommodation to guest A typical accommodation-to-guest flow is:

  • The accommodation sends a message through Booking.com or another connected accommodation system.
  • The partner retrieves the message through the Messaging API using /messages/latest.
  • The partner confirms receipt using /messages/latest/confirm.
  • The partner displays or forwards the message through its own communication channel.
  • If a reply is needed, the partner sends a message to the conversation using /messages/send.

Common accommodation messages may include:

TopicExamples
Welcome informationGreetings, booking confirmation details and information about the upcoming stay.
Special requestsReplies to requests about beds, rooms, parking or other arrangements.
Amenities and facilitiesInformation about Wi-Fi, kitchen facilities, air conditioning, laundry or accessibility features.
Local informationRecommendations or information about nearby attractions, restaurants, shops and activities.
Charges and taxesInformation about deposits, payment methods or tourist and city taxes.

Example of welcome message sent via the Booking.com platform:

auto-reply welcome message

Guest to accommodation

Traveller to accommodation flow A typical guest-to-accommodation flow is:
  • The guest sends a message through Booking.com.
  • The partner retrieves the message using /messages/latest.
  • The partner confirms receipt using /messages/latest/confirm.
  • The partner processes the request in its own system.
  • The partner replies through the same conversation using /messages/send.

Common guest messages may include:

TopicExamples
Check-in detailsEstimated arrival time, early or late check-in requests, self check-in instructions and key collection information.
Directions and transportDirections to the accommodation, parking availability and airport transfer information.
Booking questionsQuestions about dates, guest details, cancellation terms or refund policies.
Amenities and servicesQuestions about Wi-Fi, kitchen facilities, air conditioning, laundry or accessibility features.
Special requestsRequests for baby cots, extra beds, dietary requirements, celebrations or nearby rooms.
Local recommendationsQuestions about nearby attractions, restaurants, shops and activities.
Payment and chargesQuestions about accepted payment methods, deposits or tourist and city taxes.

Message delivery channels

Depending on the integration and communication setup, messages may be available to guests, accommodation partners and affiliate partners through different channels.

ParticipantExample channels
GuestBooking.com app or website, email notifications, or a partner-provided communication channel.
Accommodation partnerBooking.com Extranet, accommodation messaging tools, email notifications, or connected property-management systems.
Affiliate partnerYour own platform or messaging system, using the Messaging API to retrieve, confirm and send messages.

The exact channels available depend on the partner integration and the communication setup. The Messaging API endpoints allow partners to:

  • Retrieve messages using /messages/latest or /messages/conversations.
  • Confirm message receipt using /messages/latest/confirm.
  • Send replies using /messages/send.
  • Exchange files using the attachment endpoints.

Integration responsibilities

Partners are responsible for processing Messaging API responses and displaying or forwarding messages appropriately in their own systems.

Partners should:

  • Process messages returned by /messages/latest.
  • Store message IDs when necessary to detect duplicate messages.
  • Confirm messages after successfully processing them.
  • Handle attachment IDs and file content according to their own security and data-retention requirements.
  • Handle API errors and retry requests according to the general Demand API guidance.

Available endpoints

Messages endpoints

EndpointUse it to
/messages/sendSend a message to an existing conversation. You can optionally include attachment IDs returned by /messages/attachments/upload.
/messages/latestRetrieve the most recent messages. By default, up to 100 messages are returned in reverse chronological order.
/messages/latest/confirmConfirm receipt of messages returned by /messages/latest. Confirmation is required in order to receive new messages from /messages/latest.
/messages/conversationsRetrieve a conversation using an accommodation ID together with either a conversation ID or a reservation ID.

Attachment endpoints

EndpointUse it to
/messages/attachments/uploadUpload a file to be used as a message attachment. The response returns an attachment ID.
/messages/attachments/metadataRetrieve metadata for an attachment, including its file name, file type and file size.
/messages/attachments/downloadRetrieve the base64-encoded content of an attachment.

What's next

Use the following resources to learn more about the Messaging API: