Skoči na vsebino

Messages

Emails and text messages, scheduled or sent to guests

Endpoints

The message object

Attributes

iduuid

Unique identifier

booking_iduuid
bookings.id

Identifier of the related booking

message_template_iduuid | null
message_templates.id

Identifier of the message template the message is based on

created_atread-onlytimestamp with time zone

Creation timestamp

attachmentsArray<MessageAttachment> | null

Attachments included in the email

bodytext

Body of the message

htmltext | null

HTML of the email

include_booking_detailsboolean

Whether the message includes booking details

include_booking_linkboolean

Whether the message includes a link to the guest page

include_ical_databoolean

Whether the email includes an iCal attachment

include_product_imageboolean

Whether the email includes an image of the unit

include_transactionsboolean

Whether the message includes the booking's transactions

send_attimestamp with time zone

Timestamp at which the message is or was sent

statusMessageStatus

Status of the message

subjecttext

Subject of the email

typeMessageType

Type of the message: email or sms

Related resources

Embed related resources in the response with the select parameter, for example select=*,bookings(*). Resources related through more than one column need the column as a hint, like table!column(*).

bookings(*)object | null
bookings

The booking referenced by booking_id.

message_templates(*)object | null
message_templates

The message template referenced by message_template_id.

message_events(*)array
message_events

The message events referencing this message through message_events.message_id.

The message object
JSON
{
  "id": "00000000-0000-0000-0000-000000000000",
  "booking_id": "00000000-0000-0000-0000-000000000000",
  "message_template_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2026-10-30T22:26:24.060Z",
  "attachments": [
    {
      "filename": "file",
      "url": "https://example.com",
      "type": "application/pdf"
    }
  ],
  "body": "A short description.",
  "html": "",
  "include_booking_details": false,
  "include_booking_link": false,
  "include_ical_data": false,
  "include_product_image": false,
  "include_transactions": false,
  "send_at": "2026-10-30T22:26:24.060Z",
  "status": "sent",
  "subject": "Summer cottage",
  "type": "email"
}
Including related resources
curl -X GET "https://api.bookingmood.com/v1/messages?limit=10&select=*,bookings(*),message_templates(*)" \
  -H "Authorization: Bearer YOUR_API_KEY"

List messages

Filters

idFilter<uuid>

Unique identifier

booking_idFilter<uuid>
bookings.id

Identifier of the related booking

message_template_idFilter<uuid | null>
message_templates.id

Identifier of the message template the message is based on

created_atFilter<timestamp with time zone>

Creation timestamp

attachmentsFilter<Array<MessageAttachment> | null>

Attachments included in the email

bodyFilter<text>

Body of the message

htmlFilter<text | null>

HTML of the email

include_booking_detailsFilter<boolean>

Whether the message includes booking details

include_booking_linkFilter<boolean>

Whether the message includes a link to the guest page

include_ical_dataFilter<boolean>

Whether the email includes an iCal attachment

include_product_imageFilter<boolean>

Whether the email includes an image of the unit

include_transactionsFilter<boolean>

Whether the message includes the booking's transactions

send_atFilter<timestamp with time zone>

Timestamp at which the message is or was sent

statusFilter<MessageStatus>

Status of the message

subjectFilter<text>

Subject of the email

typeFilter<MessageType>

Type of the message: email or sms

Responses

200

A list of messages with the selected columns

206

Partial Content

400

The request is malformed, for example an unknown column or an invalid filter.

401

The API key is missing or invalid.

Error responses have a JSON body with a code, message, details and hint. See the introduction for more on errors.
GET /messages
curl -X GET "https://api.bookingmood.com/v1/messages?select=*&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example response
JSON
[
  {
    "id": "00000000-0000-0000-0000-000000000000",
    "booking_id": "00000000-0000-0000-0000-000000000000",
    "message_template_id": "00000000-0000-0000-0000-000000000000",
    "created_at": "2026-10-30T22:26:24.060Z",
    "attachments": [
      {
        "filename": "file",
        "url": "https://example.com",
        "type": "application/pdf"
      }
    ],
    "body": "A short description.",
    "html": "",
    "include_booking_details": false,
    "include_booking_link": false,
    "include_ical_data": false,
    "include_product_image": false,
    "include_transactions": false,
    "send_at": "2026-10-30T22:26:24.060Z",
    "status": "sent",
    "subject": "Summer cottage",
    "type": "email"
  }
]

Prevzemite nadzor nad svojimi rezervacijami. Zgradite svoje podjetje.

Pridružite se več kot 1200 neodvisnim ponudnikom počitniških najemov, ki uporabljajo Bookingmood za povečanje števila neposrednih rezervacij in vzpostavitev trdnejših odnosov z gosti.

Začetek brezplačnega 14-dnevnega preizkusa