Commands: guest messages and reviews

inbox, messages, automations, templates, reviews and mail previews.

Overview

CommandModeWhat it does
messages threadsreadsGuest conversations on every platform, newest first
messages threadreadsOne conversation with its messages (does not mark it read)
messages getreadsOne conversation (classic shape)
messages replychangesReply in a conversation on any platform, with attachments
messages closechangesClose a conversation (--reopen opens it again)
messages no-replychangesMark “no reply needed” (platforms that have it)
messages draftchangesLeave a draft reply for the host (nothing is sent)
messages attachchangesUpload a local file for a reply; prints the attachment id
messages attach-urlchangesFetch a public HTTPS file for a reply; prints the attachment id
messages scheduledreadsWhat the scheduled messages will send, and what they sent
messages skipchangesDo not send this one queued message
messages send-nowshows, then doesSend one queued message now (shows the text first)
automations listreadsAutomatic message rules with stats and open proposals
automations getreadsOne rule
automations proposalreadsOne proposal and whether the host applied it
automations createchangesCreate a rule; it is saved switched off until the host turns it on
automations updatechangesChange a rule (a rule that is on: a proposal for the host)
automations deletechangesDelete a rule (a rule that is on: a proposal)
templates listreadsMessage templates with every language
templates placeholdersreadsThe {{token}} placeholders with examples
templates getreadsOne template
templates renderreadsRender a template in one language (sends nothing)
templates createchangesCreate a template (other languages: --input with "bodies")
templates updatechangesChange a template (one a live rule sends: a proposal)
reviews listreadsPlatform reviews, newest first
reviews scoresreadsAverage scores per platform, category and month
reviews getreadsOne review
reviews replyhost approvesDraft a public reply for the host to send
reviews review-guesthost approvesDraft a review of the guest for the host to send
messages retrychangesSend a failed message again (the guest gets it)
messages logreadsOutbound messages with delivery status
mail previewreadsPreview a system guest e-mail with the property branding (sends nothing)
mail preview-draftreadsPreview unsaved words as the guest would get them (sends nothing)
automations restore-defaultschangesRe-create the standard rules and reset the standard templates
automations previewreadsPreview the e-mail a rule sends (sends nothing)
templates deletechangesDelete a template (refused while a rule sends it)
messages listreadsGuest conversations (older shape; see inbox)
messages sendchangesSend a message to the guest of a booking (preview first; --confirm sends)
inbox= messages threadsGuest conversations on every platform, newest first
inbox show= messages threadOne conversation with its messages (does not mark it read)
inbox reply= messages replyReply in a conversation on any platform, with attachments
inbox draft= messages draftLeave a draft reply for the host (nothing is sent)
inbox close= messages closeClose a conversation (--reopen opens it again)
inbox scheduled= messages scheduledWhat the scheduled messages will send, and what they sent

Generated from hostemi help --json of hostemi 0.4.0: the same tree the CLI prints its help, its completions and its option checks from. Modes: what each one does.

inbox

hostemi inbox

Guest conversations on every platform, newest first. A short name for hostemi messages threads: it runs that command, with the arguments shown here and that command's options.

hostemi inbox

hostemi inbox show

One conversation with its messages (does not mark it read). A short name for hostemi messages thread: it runs that command, with the arguments shown here and that command's options.

hostemi inbox show <conversation id>

hostemi inbox reply

Reply in a conversation on any platform, with attachments. A short name for hostemi messages reply: it runs that command, with the arguments shown here and that command's options.

hostemi inbox reply <id>

hostemi inbox draft

Leave a draft reply for the host (nothing is sent). A short name for hostemi messages draft: it runs that command, with the arguments shown here and that command's options.

hostemi inbox draft <id> --text <string>

hostemi inbox close

Close a conversation (--reopen opens it again). A short name for hostemi messages close: it runs that command, with the arguments shown here and that command's options.

hostemi inbox close <id>

hostemi inbox scheduled

What the scheduled messages will send, and what they sent. A short name for hostemi messages scheduled: it runs that command, with the arguments shown here and that command's options.

hostemi inbox scheduled

messages

hostemi messages threads

Guest conversations on every platform, newest first. Reads only. Never asks.

hostemi messages threads
OptionTypeDescription
--propertystringProperty id
--bookingstringBooking id
--statusstringOPEN | CLOSED
--unreadswitchUnread only
--searchstringSearch
--cursorstringNext page cursor
--takeintPage size

Mode: reads · API: GET /public/v1/threads. Every command also takes the global options.

hostemi messages thread

One conversation with its messages (does not mark it read). Reads only. Never asks.

hostemi messages thread <id>
ArgumentRequiredDescription
<id>yesThread id

Mode: reads · API: GET /public/v1/threads/:id. Every command also takes the global options.

hostemi messages get

One conversation (classic shape). Reads only. Never asks.

hostemi messages get <id>
ArgumentRequiredDescription
<id>yesThread id

Mode: reads · API: GET /public/v1/messages/:id. Every command also takes the global options.

hostemi messages reply

Reply in a conversation on any platform, with attachments. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi messages reply <id>
ArgumentRequiredDescription
<id>yesThread id
OptionTypeDescription
--textstringMessage text
--subjectstringSubject (e-mail threads)
--filelistLocal files to attach (comma separated; JPG, PNG, WebP, GIF, PDF, 10 MB)
--attachmentslistAttachment ids from `messages attach`
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/threads/:id/messages. Every command also takes the global options.

Examples
hostemi messages reply thr_1 --text "Here is the map" --file ./map.pdf --yes

hostemi messages close

Close a conversation (--reopen opens it again). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi messages close <id>
ArgumentRequiredDescription
<id>yesThread id
OptionTypeDescription
--reopenswitchReopen instead
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/threads/:id/close. Every command also takes the global options.

hostemi messages no-reply

Mark “no reply needed” (platforms that have it). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi messages no-reply <id>
ArgumentRequiredDescription
<id>yesThread id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/threads/:id/no-reply-needed. Every command also takes the global options.

hostemi messages draft

Leave a draft reply for the host (nothing is sent). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi messages draft <id> --text <string>
ArgumentRequiredDescription
<id>yesThread id
OptionTypeDescription
--textstringDraft text Required.
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/threads/:id/draft. Every command also takes the global options.

hostemi messages attach

Upload a local file for a reply; prints the attachment id. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi messages attach <path>
ArgumentRequiredDescription
<path>yesLocal file
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/attachments. Every command also takes the global options.

hostemi messages attach-url

Fetch a public HTTPS file for a reply; prints the attachment id. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi messages attach-url <url>
ArgumentRequiredDescription
<url>yesFile URL
OptionTypeDescription
--namestringFile name
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/attachments/from-url. Every command also takes the global options.

hostemi messages scheduled

What the scheduled messages will send, and what they sent. Reads only. Never asks.

hostemi messages scheduled
OptionTypeDescription
--fromstringISO, default now
--tostringISO, default 14 days ahead
--statusstringPENDING | SENT | SKIPPED | CANCELLED | FAILED
--propertystringProperty id
--bookingstringBooking id
--automationstringScheduled message id
--takeintPage size

Mode: reads · API: GET /public/v1/scheduled-messages. Every command also takes the global options.

hostemi messages skip

Do not send this one queued message. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi messages skip <id>
ArgumentRequiredDescription
<id>yesScheduled message id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/scheduled-messages/:id/skip. Every command also takes the global options.

hostemi messages send-now

Send one queued message now (shows the text first). Shows what it would do first; does it with --yes. --dry-run stops at the preview.

hostemi messages send-now <id>
ArgumentRequiredDescription
<id>yesScheduled message id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: shows, then does · API: POST /public/v1/scheduled-messages/:id/send-now. Every command also takes the global options.

hostemi messages retry

Send a failed message again (the guest gets it). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi messages retry <id>
ArgumentRequiredDescription
<id>yesMessage id (from `messages log`)
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/inbox/messages/:id/retry. Every command also takes the global options.

hostemi messages log

Outbound messages with delivery status. Reads only. Never asks.

hostemi messages log
OptionTypeDescription
--propertystringProperty id
--statusstringDelivery status, e.g. FAILED
--cursorstringNext page
--takeint1 to 200

Mode: reads · API: GET /public/v1/inbox/log. Every command also takes the global options.

hostemi messages list

Guest conversations (older shape; see inbox). Reads only. Never asks.

hostemi messages list [--booking <id>]
OptionTypeDescription
--bookingstringBooking id

Mode: reads · API: GET /public/v1/messages. Every command also takes the global options.

hostemi messages send

Send a message to the guest of a booking (preview first; --confirm sends). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi messages send <bookingId> --text <text> [--confirm]
ArgumentRequiredDescription
<bookingId>yesBooking id
OptionTypeDescription
--textstringThe message Required.
--confirmswitchReally send it

Mode: changes · API: POST /public/v1/reservations/:id/messages. Every command also takes the global options.

automations

hostemi automations list

Automatic message rules with stats and open proposals. Reads only. Never asks.

hostemi automations list

Mode: reads · API: GET /public/v1/automations. Every command also takes the global options.

hostemi automations get

One rule. Reads only. Never asks.

hostemi automations get <id>
ArgumentRequiredDescription
<id>yesScheduled message id

Mode: reads · API: GET /public/v1/automations/:id. Every command also takes the global options.

hostemi automations proposal

One proposal and whether the host applied it. Reads only. Never asks.

hostemi automations proposal <proposalId>
ArgumentRequiredDescription
<proposalId>yesProposal id

Mode: reads · API: GET /public/v1/automations/proposals/:proposalId. Every command also takes the global options.

hostemi automations create

Create a rule; it is saved switched off until the host turns it on. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi automations create
OptionTypeDescription
--namestringName
--triggerstringRESERVATION_CONFIRMED, BEFORE_ARRIVAL, ARRIVAL_DAY, BEFORE_DEPARTURE, DEPARTURE_DAY, AFTER_DEPARTURE, RESERVATION_CANCELLED, FIRST_MESSAGE, BOOKING_REQUEST
--templatestringTemplate id
--offset-daysintDays before / after (stay triggers)
--send-timestringProperty-local HH:mm (stay triggers)
--delay-minutesintDelay (other triggers)
--propertieslistProperty ids (default: every property)
--channelslistOnly bookings from these sources
--deliverystringEMAIL | CHANNEL_THREAD | BOTH
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/automations. Every command also takes the global options.

Examples
hostemi automations create --name "Welcome" --trigger BEFORE_ARRIVAL --offset-days 2 --send-time 10:00 --template tpl_1

hostemi automations update

Change a rule (a rule that is on: a proposal for the host). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi automations update <id>
ArgumentRequiredDescription
<id>yesScheduled message id
OptionTypeDescription
--namestringName
--triggerstringRESERVATION_CONFIRMED, BEFORE_ARRIVAL, ARRIVAL_DAY, BEFORE_DEPARTURE, DEPARTURE_DAY, AFTER_DEPARTURE, RESERVATION_CANCELLED, FIRST_MESSAGE, BOOKING_REQUEST
--templatestringTemplate id
--offset-daysintDays before / after (stay triggers)
--send-timestringProperty-local HH:mm (stay triggers)
--delay-minutesintDelay (other triggers)
--propertieslistProperty ids (default: every property)
--channelslistOnly bookings from these sources
--deliverystringEMAIL | CHANNEL_THREAD | BOTH
--offswitchPropose switching it off
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/automations/:id. Every command also takes the global options.

hostemi automations delete

Delete a rule (a rule that is on: a proposal). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi automations delete <id>
ArgumentRequiredDescription
<id>yesScheduled message id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: DELETE /public/v1/automations/:id. Every command also takes the global options.

hostemi automations restore-defaults

Re-create the standard rules and reset the standard templates. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi automations restore-defaults
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/automations/restore-defaults. Every command also takes the global options.

hostemi automations preview

Preview the e-mail a rule sends (sends nothing). Reads only. Never asks.

hostemi automations preview <id>
ArgumentRequiredDescription
<id>yesScheduled message id
OptionTypeDescription
--bookingstringRender against this booking
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: reads · API: POST /public/v1/automations/:id/preview. Every command also takes the global options.

templates

hostemi templates list

Message templates with every language. Reads only. Never asks.

hostemi templates list

Mode: reads · API: GET /public/v1/templates. Every command also takes the global options.

hostemi templates placeholders

The {{token}} placeholders with examples. Reads only. Never asks.

hostemi templates placeholders

Mode: reads · API: GET /public/v1/templates/placeholders. Every command also takes the global options.

hostemi templates get

One template. Reads only. Never asks.

hostemi templates get <id>
ArgumentRequiredDescription
<id>yesTemplate id

Mode: reads · API: GET /public/v1/templates/:id. Every command also takes the global options.

hostemi templates render

Render a template in one language (sends nothing). Reads only. Never asks.

hostemi templates render <id>
ArgumentRequiredDescription
<id>yesTemplate id
OptionTypeDescription
--languagestringLanguage
--bookingstringRender against this booking
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: reads · API: POST /public/v1/templates/:id/render. Every command also takes the global options.

hostemi templates create

Create a template (other languages: --input with "bodies"). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi templates create
OptionTypeDescription
--namestringName
--subjectstringSubject
--bodystringBody; {{placeholders}} allowed
--languagestringLanguage of subject/body
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/templates. Every command also takes the global options.

hostemi templates update

Change a template (one a live rule sends: a proposal). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi templates update <id>
ArgumentRequiredDescription
<id>yesTemplate id
OptionTypeDescription
--namestringName
--subjectstringSubject
--bodystringBody; {{placeholders}} allowed
--languagestringLanguage of subject/body
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/templates/:id. Every command also takes the global options.

hostemi templates delete

Delete a template (refused while a rule sends it). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi templates delete <id>
ArgumentRequiredDescription
<id>yesTemplate id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: DELETE /public/v1/templates/:id. Every command also takes the global options.

reviews

hostemi reviews list

Platform reviews, newest first. Reads only. Never asks.

hostemi reviews list
OptionTypeDescription
--propertystringProperty id
--connectionstringConnected platform id
--channelstringAIRBNB, BOOKING_COM, …
--needs-replyswitchOnly those without a reply
--min-scorenumber0..10
--max-scorenumber0..10
--reply-statestringReply state
--cursorstringNext page cursor
--takeintPage size

Mode: reads · API: GET /public/v1/reviews. Every command also takes the global options.

hostemi reviews scores

Average scores per platform, category and month. Reads only. Never asks.

hostemi reviews scores
OptionTypeDescription
--propertystringProperty id

Mode: reads · API: GET /public/v1/reviews/scores. Every command also takes the global options.

hostemi reviews get

One review. Reads only. Never asks.

hostemi reviews get <id>
ArgumentRequiredDescription
<id>yesReview id

Mode: reads · API: GET /public/v1/reviews/:id. Every command also takes the global options.

hostemi reviews reply

Draft a public reply for the host to send. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

hostemi reviews reply <id> --text <string>
ArgumentRequiredDescription
<id>yesReview id
OptionTypeDescription
--textstringReply text Required.
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: host approves · API: POST /public/v1/reviews/:id/reply. Every command also takes the global options.

hostemi reviews review-guest

Draft a review of the guest for the host to send. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

hostemi reviews review-guest <id> --cleanliness <int> --communication <int> --house-rules <int> --recommend <boolean> --text <string>
ArgumentRequiredDescription
<id>yesReview id
OptionTypeDescription
--cleanlinessint1..5 Required.
--communicationint1..5 Required.
--house-rulesint1..5 Required.
--recommendswitchon | off Required.
--textstringPublic text Required.
--private-notestringPrivate note to the guest
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: host approves · API: POST /public/v1/reviews/:id/guest-review. Every command also takes the global options.

mail

hostemi mail preview

Preview a system guest e-mail with the property branding (sends nothing). Reads only. Never asks.

hostemi mail preview <kind>
ArgumentRequiredDescription
<kind>yesguest-booking-received, guest-payment-succeeded, guest-check-in-link, guest-booking-cancelled, guest-hold-expired, guest-hold-expiring, guest-booking-altered
OptionTypeDescription
--bookingstringRender against this booking
--propertystringProperty (sample values)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: reads · API: POST /public/v1/messaging/preview. Every command also takes the global options.

hostemi mail preview-draft

Preview unsaved words as the guest would get them (sends nothing). Reads only. Never asks.

hostemi mail preview-draft
OptionTypeDescription
--subjectstringSubject
--bodystringBody; {{placeholders}} allowed
--languagestringLanguage
--bookingstringRender against this booking
--propertystringProperty (sample values)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: reads · API: POST /public/v1/messaging/preview-draft. Every command also takes the global options.

Something missing from this page? Write to [email protected], or use the form on the Help page.