Commands: guest messages and reviews
inbox, messages, automations, templates, reviews and mail previews.
Overview
| Command | Mode | What it does |
|---|---|---|
messages threads | reads | Guest conversations on every platform, newest first |
messages thread | reads | One conversation with its messages (does not mark it read) |
messages get | reads | One conversation (classic shape) |
messages reply | changes | Reply in a conversation on any platform, with attachments |
messages close | changes | Close a conversation (--reopen opens it again) |
messages no-reply | changes | Mark “no reply needed” (platforms that have it) |
messages draft | changes | Leave a draft reply for the host (nothing is sent) |
messages attach | changes | Upload a local file for a reply; prints the attachment id |
messages attach-url | changes | Fetch a public HTTPS file for a reply; prints the attachment id |
messages scheduled | reads | What the scheduled messages will send, and what they sent |
messages skip | changes | Do not send this one queued message |
messages send-now | shows, then does | Send one queued message now (shows the text first) |
automations list | reads | Automatic message rules with stats and open proposals |
automations get | reads | One rule |
automations proposal | reads | One proposal and whether the host applied it |
automations create | changes | Create a rule; it is saved switched off until the host turns it on |
automations update | changes | Change a rule (a rule that is on: a proposal for the host) |
automations delete | changes | Delete a rule (a rule that is on: a proposal) |
templates list | reads | Message templates with every language |
templates placeholders | reads | The {{token}} placeholders with examples |
templates get | reads | One template |
templates render | reads | Render a template in one language (sends nothing) |
templates create | changes | Create a template (other languages: --input with "bodies") |
templates update | changes | Change a template (one a live rule sends: a proposal) |
reviews list | reads | Platform reviews, newest first |
reviews scores | reads | Average scores per platform, category and month |
reviews get | reads | One review |
reviews reply | host approves | Draft a public reply for the host to send |
reviews review-guest | host approves | Draft a review of the guest for the host to send |
messages retry | changes | Send a failed message again (the guest gets it) |
messages log | reads | Outbound messages with delivery status |
mail preview | reads | Preview a system guest e-mail with the property branding (sends nothing) |
mail preview-draft | reads | Preview unsaved words as the guest would get them (sends nothing) |
automations restore-defaults | changes | Re-create the standard rules and reset the standard templates |
automations preview | reads | Preview the e-mail a rule sends (sends nothing) |
templates delete | changes | Delete a template (refused while a rule sends it) |
messages list | reads | Guest conversations (older shape; see inbox) |
messages send | changes | Send a message to the guest of a booking (preview first; --confirm sends) |
inbox | = messages threads | Guest conversations on every platform, newest first |
inbox show | = messages thread | One conversation with its messages (does not mark it read) |
inbox reply | = messages reply | Reply in a conversation on any platform, with attachments |
inbox draft | = messages draft | Leave a draft reply for the host (nothing is sent) |
inbox close | = messages close | Close a conversation (--reopen opens it again) |
inbox scheduled | = messages scheduled | What 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 inboxhostemi 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 scheduledmessages
hostemi messages threads
Guest conversations on every platform, newest first. Reads only. Never asks.
hostemi messages threads| Option | Type | Description |
|---|---|---|
--property | string | Property id |
--booking | string | Booking id |
--status | string | OPEN | CLOSED |
--unread | switch | Unread only |
--search | string | Search |
--cursor | string | Next page cursor |
--take | int | Page 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Thread 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Thread 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Thread id |
| Option | Type | Description |
|---|---|---|
--text | string | Message text |
--subject | string | Subject (e-mail threads) |
--file | list | Local files to attach (comma separated; JPG, PNG, WebP, GIF, PDF, 10 MB) |
--attachments | list | Attachment ids from `messages attach` |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON body inline |
Mode: changes · API: POST /public/v1/threads/:id/messages. Every command also takes the global options.
hostemi messages reply thr_1 --text "Here is the map" --file ./map.pdf --yeshostemi 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Thread id |
| Option | Type | Description |
|---|---|---|
--reopen | switch | Reopen instead |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Thread id |
| Option | Type | Description |
|---|---|---|
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Thread id |
| Option | Type | Description |
|---|---|---|
--text | string | Draft text Required. |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<path> | yes | Local file |
| Option | Type | Description |
|---|---|---|
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<url> | yes | File URL |
| Option | Type | Description |
|---|---|---|
--name | string | File name |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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| Option | Type | Description |
|---|---|---|
--from | string | ISO, default now |
--to | string | ISO, default 14 days ahead |
--status | string | PENDING | SENT | SKIPPED | CANCELLED | FAILED |
--property | string | Property id |
--booking | string | Booking id |
--automation | string | Scheduled message id |
--take | int | Page 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Scheduled message id |
| Option | Type | Description |
|---|---|---|
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Scheduled message id |
| Option | Type | Description |
|---|---|---|
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Message id (from `messages log`) |
| Option | Type | Description |
|---|---|---|
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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| Option | Type | Description |
|---|---|---|
--property | string | Property id |
--status | string | Delivery status, e.g. FAILED |
--cursor | string | Next page |
--take | int | 1 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>]| Option | Type | Description |
|---|---|---|
--booking | string | Booking 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]| Argument | Required | Description |
|---|---|---|
<bookingId> | yes | Booking id |
| Option | Type | Description |
|---|---|---|
--text | string | The message Required. |
--confirm | switch | Really 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 listMode: 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Scheduled 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>| Argument | Required | Description |
|---|---|---|
<proposalId> | yes | Proposal 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| Option | Type | Description |
|---|---|---|
--name | string | Name |
--trigger | string | RESERVATION_CONFIRMED, BEFORE_ARRIVAL, ARRIVAL_DAY, BEFORE_DEPARTURE, DEPARTURE_DAY, AFTER_DEPARTURE, RESERVATION_CANCELLED, FIRST_MESSAGE, BOOKING_REQUEST |
--template | string | Template id |
--offset-days | int | Days before / after (stay triggers) |
--send-time | string | Property-local HH:mm (stay triggers) |
--delay-minutes | int | Delay (other triggers) |
--properties | list | Property ids (default: every property) |
--channels | list | Only bookings from these sources |
--delivery | string | EMAIL | CHANNEL_THREAD | BOTH |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON body inline |
Mode: changes · API: POST /public/v1/automations. Every command also takes the global options.
hostemi automations create --name "Welcome" --trigger BEFORE_ARRIVAL --offset-days 2 --send-time 10:00 --template tpl_1hostemi 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Scheduled message id |
| Option | Type | Description |
|---|---|---|
--name | string | Name |
--trigger | string | RESERVATION_CONFIRMED, BEFORE_ARRIVAL, ARRIVAL_DAY, BEFORE_DEPARTURE, DEPARTURE_DAY, AFTER_DEPARTURE, RESERVATION_CANCELLED, FIRST_MESSAGE, BOOKING_REQUEST |
--template | string | Template id |
--offset-days | int | Days before / after (stay triggers) |
--send-time | string | Property-local HH:mm (stay triggers) |
--delay-minutes | int | Delay (other triggers) |
--properties | list | Property ids (default: every property) |
--channels | list | Only bookings from these sources |
--delivery | string | EMAIL | CHANNEL_THREAD | BOTH |
--off | switch | Propose switching it off |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Scheduled message id |
| Option | Type | Description |
|---|---|---|
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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| Option | Type | Description |
|---|---|---|
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Scheduled message id |
| Option | Type | Description |
|---|---|---|
--booking | string | Render against this booking |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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 listMode: 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 placeholdersMode: 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Template 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Template id |
| Option | Type | Description |
|---|---|---|
--language | string | Language |
--booking | string | Render against this booking |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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| Option | Type | Description |
|---|---|---|
--name | string | Name |
--subject | string | Subject |
--body | string | Body; {{placeholders}} allowed |
--language | string | Language of subject/body |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Template id |
| Option | Type | Description |
|---|---|---|
--name | string | Name |
--subject | string | Subject |
--body | string | Body; {{placeholders}} allowed |
--language | string | Language of subject/body |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Template id |
| Option | Type | Description |
|---|---|---|
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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| Option | Type | Description |
|---|---|---|
--property | string | Property id |
--connection | string | Connected platform id |
--channel | string | AIRBNB, BOOKING_COM, … |
--needs-reply | switch | Only those without a reply |
--min-score | number | 0..10 |
--max-score | number | 0..10 |
--reply-state | string | Reply state |
--cursor | string | Next page cursor |
--take | int | Page 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| Option | Type | Description |
|---|---|---|
--property | string | Property 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Review 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Review id |
| Option | Type | Description |
|---|---|---|
--text | string | Reply text Required. |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Review id |
| Option | Type | Description |
|---|---|---|
--cleanliness | int | 1..5 Required. |
--communication | int | 1..5 Required. |
--house-rules | int | 1..5 Required. |
--recommend | switch | on | off Required. |
--text | string | Public text Required. |
--private-note | string | Private note to the guest |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON body inline |
Mode: host approves · API: POST /public/v1/reviews/:id/guest-review. Every command also takes the global options.
hostemi mail preview
Preview a system guest e-mail with the property branding (sends nothing). Reads only. Never asks.
hostemi mail preview <kind>| Argument | Required | Description |
|---|---|---|
<kind> | yes | guest-booking-received, guest-payment-succeeded, guest-check-in-link, guest-booking-cancelled, guest-hold-expired, guest-hold-expiring, guest-booking-altered |
| Option | Type | Description |
|---|---|---|
--booking | string | Render against this booking |
--property | string | Property (sample values) |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON 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| Option | Type | Description |
|---|---|---|
--subject | string | Subject |
--body | string | Body; {{placeholders}} allowed |
--language | string | Language |
--booking | string | Render against this booking |
--property | string | Property (sample values) |
--input | file | JSON body from a file, or - for stdin; flags win over it |
--data | json | JSON body inline |
Mode: reads · API: POST /public/v1/messaging/preview-draft. Every command also takes the global options.