Add

Saves a message on a reservation; a message for the guest is also delivered to the reservation's channel.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Saves a message on a reservation. A message from the agency to the guest (creator = user, to = guest) is also delivered to the reservation's channel (Booking.com, Airbnb, Vrbo, Expedia). Only rent_id and message are required; a request with only these two fields is saved as an agency message to the guest.

If a field has a value that is not allowed, the request returns 400 with the allowed values and no message is saved. More optional fields for AI workflows are supported (op_status, op_priority, op_due_at, op_assigned_worker_id, op_note, ai_model, ai_reply_text, ai_reply_json, ai_guest_message_flags, ai_reply_flags, ai_processed_at, cost_json, cost_price, important_message).

Headers: user_guid, b2b_guid and token. See MyRent User API.

📘

AI reply to the guest

Send creator = "user" and source = "ai". Channels deliver only messages with creator = user. A message with creator = "ai" is saved in MyRent but is not delivered to the guest.

Example request body

{
  "rent_id": "123456",
  "message": "Hello, check-in is from 3 PM.",
  "creator": "user",
  "to": "guest",
  "source": "api",
  "source_info": "PartnerApp",
  "erp_id": "msg-98765"
}

Responses

CodeMeaning
200Message saved. b2b_responses holds the raw channel response, if any.
400Missing or invalid field, or rent_id in the URL and body do not match. message explains what to fix. Nothing is saved.
401Missing or wrong user_guid / b2b_guid headers.
403The reservation does not belong to the account.
404Missing or invalid user_guid / token.
Path Params
string
required

MyRent reservation ID. Must be the same as rent_id in the body.

Body Params
string
required

MyRent reservation ID, the same as in the URL.

string
required

Message text.

string

MyRent worker who sent the message. Used for outgoing messages only.

string

Short sender info shown in the inbox, for example PartnerAI (max 200 characters).

string

Your own message ID for mapping (max 200 characters).

string
enum
Defaults to user

Who wrote the message.

Allowed:
string
enum
Defaults to guest

Who receives the message. When creator is guest, owner or customer, the default is user.

Allowed:
string
enum
Defaults to api

Channel or system that created the message.

attachments
array

Images: { "file_name", "file_type", "file_content" }. Only image/jpeg and image/png, content as base64, max 1 MB per file.

attachments
string
enum

The message was processed by AI.

Allowed:
string
enum

AI needs a person from the agency to follow up.

Allowed:
string
enum

Urgent message.

Allowed:
string
enum

Marked as to do.

Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

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