Send a message

Send an email, SMS, or channel (OTA) message.

Target rules:

  • email / sms: reservationId is required.
  • channel: provide either reservationId or threadId.
  • If both are sent for a channel message, reservationId takes precedence.
  • When the message webhook's reservationId is empty (for example, an enquiry), omit reservationId and send threadId only.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
🚧

Scope

This endpoint requires Create Messages access.

What to send

messageTypeRequired fields
emailreservationId, subject, message
smsreservationId, message
channelmessage, and either reservationId or threadId

If both reservationId and threadId are sent on a channel message, reservationId takes precedence.

When the webhook's reservationId is empty

If the message webhook's reservationId is empty (for example, an enquiry), the channel thread is not linked to a Resly reservation yet. Reply with threadId only and leave out reservationId. Otherwise use reservationId.

Example: replying to an enquiry

{
  "messageType": "channel",
  "threadId": "1234567890",
  "message": "Thanks for your enquiry, those dates are available."
}
Body Params
string
enum
required

email and sms require reservationId. channel requires reservationId or threadId.

Allowed:
string

The Resly reservation ID. Required for email and SMS. For channel messages, required unless threadId is provided. If both are sent, reservationId takes precedence. Leave it out when the message webhook's reservationId is empty (for example, an enquiry).

string
required

A string text message

string

Required if it's an email

string

Channel messages only. The ID of the message thread, as returned in the message webhook. If the webhook's reservationId is empty (for example, an enquiry), send threadId and leave out reservationId. If both are sent, reservationId takes precedence.

Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json