---
title: "Fetch latest messages"
method: POST
path: "/messages/latest"
tags: ["Messages"]
---

# Fetch latest messages

`POST /messages/latest`

Retrieves up to **100 of the most recent messages** including messages from both property and guest.<br/>

- 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.

## Headers

- `X-Affiliate-Id` integer, required

## Response `200`

Latest messages fetched successfully.

- object
  - `request_id` string — Unique identifier for this request. Provide this ID when contacting support.
  - `data` object
    - `messages` object[]
      - `message_id` string — Unique identifier of the message.
      - `reply_to` string, nullable — ID of the message this is replying to (if applicable).
      - `conversation` object
        - `id` string — Unique identifier of the conversation.
        - `accommodation` string — Unique identifier of the property.
        - `reservation` string — Unique identifier of the reservation.
      - `content` string — Message text content.
      - `sender` object
        - `participant_id` string — Unique identifier of the conversation participant.
        - `metadata` object — Additional metadata about the sender.
      - `attachments` string[]
      - `timestamp` string, date-time — Timestamp in ISO 8601 format (UTC) when the message was sent.

---

[API](https://skmtc.net/booking/apis/booking-com-demand-api.md) · [All operations](https://skmtc.net/booking/apis/booking-com-demand-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/booking/booking-com-demand-api/revisions/e5f3dccae7ca/schema)
