---
title: "Query upcoming automation actions"
method: GET
path: "/automation/actions"
tags: ["Automation"]
---

# Query upcoming automation actions

`GET /automation/actions`

Returns scheduled automation **actions** that are waiting to run: either automated **messages** (`type=message`, same scope as the in-app “upcoming message actions” list, within the next 30 days) or automated **reviews** (`type=review`). Filters mirror the internal automation plan lists (keyword, property IDs, time range, channel types, rule event filters). Pagination uses `offset` and `limit` like other v3 list endpoints.

## Query parameters

- `type` 'message' | 'review', required
- `keyword` string
- `stay_code` string
- `property_ids` string
- `start_time` string, date-time
- `end_time` string, date-time
- `channel_types` string
- `offset` integer
- `limit` integer

## Response `200`

List of upcoming automation actions and total count.

- object
  - `request_id` string, required — Unique identifier for the request.
  - `error_code` integer, required — Numeric error code representing the status of the response. A value of `200` indicates success. <br> See the [Error Codes](/reference/error-manual#error-codes) section for more information.
  - `error_msg` string, required — Message detailing the status of the response.
  - `data` object, required
    - `actions` object[], required — Scheduled actions, ordered by `scheduled_at`.
      - `id` integer, required — Automation plan id.
      - `type` 'message' | 'review', required — Action kind, matches the `type` query parameter.
      - `name` string, required — Human-readable title: action prefix plus linked rule event title.
      - `send_to` string, required — Recipient hint from the plan detail (e.g. thread or guest label).
      - `stay_code` string, nullable, required — Linked reservation (stay) code, or `null` if the plan is not tied to a stay.
      - `property_id` integer, required — Hostex property (house) id for this plan.
      - `property_title` string, required — Property display title for the plan’s house.
      - `scheduled_at` string, date-time, required — When the action is scheduled to run, in the operator's local timezone.
      - `channel_type` 'airbnb' | 'booking.com' | 'agoda' | 'expedia' | 'vrbo' | 'trip.com' | 'booking_site' | 'tujia_intl' | 'hostex_direct' | 'tujia' | 'xiaozhu' | 'meituan_bnb' | 'meituan_hotel' | 'muniao' | 'fliggy' | 'zhukeyun' | 'tiktok' | 'xiaohongshu' | 'ctrip' | 'houfy', required — The type of the channel. See [Supported Channels](/reference/supported-channels) for more information.
    - `total` integer, required — Total number of matching actions (before `offset` / `limit`).

---

[API](https://skmtc.net/hostex/apis/hostex-api.md) · [All operations](https://skmtc.net/hostex/apis/hostex-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostex/hostex-api/revisions/a3fa555dee66/schema)
