---
title: "Commands: guest messages and reviews | Hostemi"
description: "inbox, messages, automations, templates, reviews and mail previews. Step-by-step help from the Hostemi docs for vacation rental hosts."
canonical: https://hostemi.com/docs/cli/reference/messages
source: https://hostemi.com/docs/cli/reference/messages.md
---

# Commands: guest messages and reviews

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

#### On this page

1. [Overview](#overview)
2. [inbox](#inbox)
3. [messages](#messages)
4. [automations](#automations)
5. [templates](#templates)
6. [reviews](#reviews)
7. [mail](#mail)

## Overview

| Command | Mode | What it does |
| --- | --- | --- |
| [`messages threads`](#messages-threads) | reads | Guest conversations on every platform, newest first |
| [`messages thread`](#messages-thread) | reads | One conversation with its messages (does not mark it read) |
| [`messages get`](#messages-get) | reads | One conversation (classic shape) |
| [`messages reply`](#messages-reply) | changes | Reply in a conversation on any platform, with attachments |
| [`messages close`](#messages-close) | changes | Close a conversation (--reopen opens it again) |
| [`messages no-reply`](#messages-no-reply) | changes | Mark “no reply needed” (platforms that have it) |
| [`messages draft`](#messages-draft) | changes | Leave a draft reply for the host (nothing is sent) |
| [`messages attach`](#messages-attach) | changes | Upload a local file for a reply; prints the attachment id |
| [`messages attach-url`](#messages-attach-url) | changes | Fetch a public HTTPS file for a reply; prints the attachment id |
| [`messages scheduled`](#messages-scheduled) | reads | What the scheduled messages will send, and what they sent |
| [`messages skip`](#messages-skip) | changes | Do not send this one queued message |
| [`messages send-now`](#messages-send-now) | shows, then does | Send one queued message now (shows the text first) |
| [`automations list`](#automations-list) | reads | Automatic message rules with stats and open proposals |
| [`automations get`](#automations-get) | reads | One rule |
| [`automations proposal`](#automations-proposal) | reads | One proposal and whether the host applied it |
| [`automations create`](#automations-create) | changes | Create a rule; it is saved switched off until the host turns it on |
| [`automations update`](#automations-update) | changes | Change a rule (a rule that is on: a proposal for the host) |
| [`automations delete`](#automations-delete) | changes | Delete a rule (a rule that is on: a proposal) |
| [`templates list`](#templates-list) | reads | Message templates with every language |
| [`templates placeholders`](#templates-placeholders) | reads | The {{token}} placeholders with examples |
| [`templates get`](#templates-get) | reads | One template |
| [`templates render`](#templates-render) | reads | Render a template in one language (sends nothing) |
| [`templates create`](#templates-create) | changes | Create a template (other languages: --input with "bodies") |
| [`templates update`](#templates-update) | changes | Change a template (one a live rule sends: a proposal) |
| [`reviews list`](#reviews-list) | reads | Platform reviews, newest first |
| [`reviews scores`](#reviews-scores) | reads | Average scores per platform, category and month |
| [`reviews get`](#reviews-get) | reads | One review |
| [`reviews reply`](#reviews-reply) | host approves | Draft a public reply for the host to send |
| [`reviews review-guest`](#reviews-review-guest) | host approves | Draft a review of the guest for the host to send |
| [`messages retry`](#messages-retry) | changes | Send a failed message again (the guest gets it) |
| [`messages log`](#messages-log) | reads | Outbound messages with delivery status |
| [`mail preview`](#mail-preview) | reads | Preview a system guest e-mail with the property branding (sends nothing) |
| [`mail preview-draft`](#mail-preview-draft) | reads | Preview unsaved words as the guest would get them (sends nothing) |
| [`automations restore-defaults`](#automations-restore-defaults) | changes | Re-create the standard rules and reset the standard templates |
| [`automations preview`](#automations-preview) | reads | Preview the e-mail a rule sends (sends nothing) |
| [`templates delete`](#templates-delete) | changes | Delete a template (refused while a rule sends it) |
| [`messages list`](#messages-list) | reads | Guest conversations (older shape; see inbox) |
| [`messages send`](#messages-send) | changes | Send a message to the guest of a booking (preview first; --confirm sends) |
| [`inbox`](#inbox) | = messages threads | Guest conversations on every platform, newest first |
| [`inbox show`](#inbox-show) | = messages thread | One conversation with its messages (does not mark it read) |
| [`inbox reply`](#inbox-reply) | = messages reply | Reply in a conversation on any platform, with attachments |
| [`inbox draft`](#inbox-draft) | = messages draft | Leave a draft reply for the host (nothing is sent) |
| [`inbox close`](#inbox-close) | = messages close | Close a conversation (--reopen opens it again) |
| [`inbox scheduled`](#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](https://hostemi.com/docs/cli/approvals).

## inbox

### hostemi inbox

Guest conversations on every platform, newest first. A short name for [`hostemi messages threads`](https://hostemi.com/docs/cli/reference/messages#messages-threads): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi inbox
```

### hostemi inbox show

One conversation with its messages (does not mark it read). A short name for [`hostemi messages thread`](https://hostemi.com/docs/cli/reference/messages#messages-thread): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi inbox show <conversation id>
```

### hostemi inbox reply

Reply in a conversation on any platform, with attachments. A short name for [`hostemi messages reply`](https://hostemi.com/docs/cli/reference/messages#messages-reply): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi inbox reply <id>
```

### hostemi inbox draft

Leave a draft reply for the host (nothing is sent). A short name for [`hostemi messages draft`](https://hostemi.com/docs/cli/reference/messages#messages-draft): it runs that command, with the arguments shown here and that command's options.

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

### hostemi inbox close

Close a conversation (--reopen opens it again). A short name for [`hostemi messages close`](https://hostemi.com/docs/cli/reference/messages#messages-close): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi inbox close <id>
```

### hostemi inbox scheduled

What the scheduled messages will send, and what they sent. A short name for [`hostemi messages scheduled`](https://hostemi.com/docs/cli/reference/messages#messages-scheduled): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi inbox scheduled
```

## messages

### hostemi messages threads

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi messages thread

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi messages get

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

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

Examples

```bash
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.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi messages scheduled

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi messages skip

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

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi messages log

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi messages list

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

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

## automations

### hostemi automations list

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

```bash
hostemi automations list
```

Mode: reads · API: GET /public/v1/automations. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi automations get

One rule. Reads only. Never asks.

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi automations proposal

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

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

Examples

```bash
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.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi automations preview

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

```bash
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](https://hostemi.com/docs/cli/usage).

## templates

### hostemi templates list

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

```bash
hostemi templates list
```

Mode: reads · API: GET /public/v1/templates. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi templates placeholders

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

```bash
hostemi templates placeholders
```

Mode: reads · API: GET /public/v1/templates/placeholders. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi templates get

One template. Reads only. Never asks.

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi templates render

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

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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.

```bash
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](https://hostemi.com/docs/cli/usage).

## reviews

### hostemi reviews list

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi reviews scores

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi reviews get

One review. Reads only. Never asks.

```bash
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](https://hostemi.com/docs/cli/usage).

### 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).

```bash
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](https://hostemi.com/docs/cli/usage).

### 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).

```bash
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](https://hostemi.com/docs/cli/usage).

## mail

### hostemi mail preview

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi mail preview-draft

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

```bash
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](https://hostemi.com/docs/cli/usage).

Documentation pages

Something missing from this page? Write to [hello@hostemi.com](mailto:hello@hostemi.com), or use the form on the [Help](https://hostemi.com/help) page.
