Saves a message on a reservation; a message for the guest is also delivered to the reservation's channel.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
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"andsource = "ai". Channels deliver only messages withcreator = user. A message withcreator = "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
| Code | Meaning |
|---|---|
| 200 | Message saved. b2b_responses holds the raw channel response, if any. |
| 400 | Missing or invalid field, or rent_id in the URL and body do not match. message explains what to fix. Nothing is saved. |
| 401 | Missing or wrong user_guid / b2b_guid headers. |
| 403 | The reservation does not belong to the account. |
| 404 | Missing or invalid user_guid / token. |
