Saves a message on a reservation. A message for the guest is also delivered to the reservation channel.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Saves a message on a reservation. A message for the guest is also delivered to the reservation channel (Booking.com, Airbnb, Vrbo, Expedia).
Authentication: send the user_guid, b2b_guid and token headers. The account must have your partner integration enabled. See Getting started.
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.
Delivery rules
| creator | to | Accepted | Sent to channel |
|---|---|---|---|
user | guest | yes | yes, except for source = sms |
user, job | owner, customer | yes | no |
ai, api, job | guest | yes | no (Booking.com also accepts job) |
guest, owner, customer | user | yes | no, saved as an incoming message |
guest, owner, customer | not user | no, 400 | – |
user, job, ai, api | user | no, 400 | – |
AI reply to the guest
Send
creator=userandsource=ai. Channels deliver only messages withcreator=user. A message withcreator=aiis saved in MyRent but is not delivered to the guest.
Optional inbox and workflow fields (all optional): ai_handled, ai_needs_human, is_urgent, to_do, important_message (Y / N); op_status (none, todo, follow_up, waiting_guest, waiting_owner, waiting_vendor, done, spam); op_priority (low, normal, high, urgent); op_due_at (local date-time); op_assigned_worker_id; op_note (max 500); ai_model (max 50); ai_reply_text; ai_reply_json; ai_guest_message_flags and ai_reply_flags (array or comma-separated text, max 255); ai_processed_at; cost_json; cost_price (number, 0 or more).
Responses
| Status | 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. Nothing is saved. |
401 | Missing or wrong user_guid / b2b_guid. |
403 | The reservation does not belong to the account. |
404 | Missing or invalid token (empty body). |
